Slackbot
02/07/2019, 1:05 PMczuckie
02/07/2019, 2:54 PMconfig.isTransparentToolbar() == true
iircadam-mcneilly
02/07/2019, 2:56 PMdumptruckman
02/07/2019, 4:11 PMvar recipients: MutableList<String> = mutableListOf()
var recipient: String
set(recipient: String) {
recipients.add(recipient)
}
dumptruckman
02/07/2019, 4:23 PMdumptruckman
02/07/2019, 4:53 PMdiesieben07
02/07/2019, 4:55 PMvar foo: String
@JvmSynthetic
@Deprecated(message = "unused getter", level = DeprecationLevel.HIDDEN)
get() = throw RuntimeException()
set(value) {
}
dumptruckman
02/07/2019, 6:13 PMMichael
02/07/2019, 8:11 PM{ .....some lines.... if (condition) { null } ..... final value }
groostav
02/07/2019, 8:40 PMsealed inline class Token{}
object UnixNewline: Token()
object WindowsNewline: Token()
inline class Character(val impl: Char): Token()
it would make one of my tokenizers run a whole lot fasterdumptruckman
02/07/2019, 9:40 PM() -> Unit
but it is expecting a return valuedumptruckman
02/07/2019, 10:09 PMursus
02/08/2019, 3:54 AMantonis
02/08/2019, 8:55 AMthana
02/08/2019, 8:57 AMkarelpeeters
02/08/2019, 10:29 AMclass Env {
fun sub() = SubEnv(this)
}
class SubEnv(val parent: Env)
Is there a nice way to make sub()
the only possible way to construct a SubEnv
instance? Making the constructor of SubEnv
private
isn't allowed. Making SubEnv
an inner class doesn't help either, you're still not allowed to make the constructor private.svenjacobs
02/08/2019, 11:19 AMinternal
. So I just want to warn users if they are accidentally using the internal function.dumptruckman
02/08/2019, 4:42 PMHaSH
02/08/2019, 7:01 PMkevinmost
02/08/2019, 7:43 PMinternal
is public
in Java, but they mangle the name in bytecode so it's not that bad. Nobody will look at that method name and want to call it.dumptruckman
02/08/2019, 8:16 PMval contentBodyP2MessageKey = template.contentBodyP2MessageKey
val contentBodyP2MessageArgs = template.contentBodyP2MessageArgs
if (contentBodyP2MessageKey != null && contentBodyP2MessageArgs != null) {
val contentBodyP2 =
messageSource.getMessage(contentBodyP2MessageKey, contentBodyP2MessageArgs(environment), locale!!)
context.setVariable("contentBodyP2", contentBodyP2)
}
tianhao
02/09/2019, 12:14 AMtianhao
02/09/2019, 2:24 AMop: (Double, Double) -> Double
and the parameters I will pass could be: { op1, op2 -> op1 + op2 }
, { op1, op2 -> op1 - op2 }
or { op1, op2 -> op1 / op2 }
. So how can I check op
is equals \
operation I passed in inside of the method?Hexa
02/09/2019, 10:21 AMJakub Aniola
02/09/2019, 6:40 PMGarouDan
02/10/2019, 12:14 AMerror in the "Kotlin (Mobile Android/iOS)" template
in IntelliJ to create a new project.
The android buid.gradle
is not correct configured since it is prepared to copy a app.framework
but the build process is generating a main.framework
. Also, the references in the iosApp
, specially in the project.pbxproj
are wrong, pointing the the app.framework
. I tried several variations trying to change the main.framework
to the app.framework
but it wasn’t working. What worked was the opposite, change the references from app.framework
to main.framework
. I think this worked because the module exported is main
but not app
. So I needed to fix the imports in the project too. Ufa! I had a hard time trying to put this to work, since this was my first project using android and ios.tipsy
02/10/2019, 9:18 AMJakub Aniola
02/10/2019, 2:43 PMGarouDan
02/10/2019, 2:46 PMDalinar
02/10/2019, 3:16 PM.use
if it is used on the next line? should it be indented or should it be flush with the object on the line above?Dalinar
02/10/2019, 3:16 PM.use
if it is used on the next line? should it be indented or should it be flush with the object on the line above?Dominaezzz
02/10/2019, 3:30 PMDalinar
02/10/2019, 3:31 PM.use {
or (tab).use {
(indented)? .. it seems to look better non-indented to meDominaezzz
02/10/2019, 3:34 PMCzar
02/10/2019, 3:36 PMsomeObject
.use {
//logic
}
karelpeeters
02/10/2019, 5:45 PMDalinar
02/11/2019, 5:28 PM