kuno
10/20/2018, 5:11 AMUzi Landsmann
10/20/2018, 5:58 AMbod
10/20/2018, 1:47 PM404
? https://kotlinlang.org/docs/diagnostics/experimental-coroutinesNikky
10/20/2018, 9:54 PMNikky
10/21/2018, 12:11 AMTwoClocks
10/21/2018, 3:56 AMJoeHegarty
10/21/2018, 4:15 AM@builder
annotation in Lombok etc. Has anyone created an annotation processor or similar that does this?zake
10/21/2018, 8:06 AMkarelpeeters
10/21/2018, 7:15 PMSlackbot
10/21/2018, 10:01 PMBarend
10/22/2018, 10:36 AMGiorgio Antonioli
10/22/2018, 10:40 AMDaniele Segato
10/22/2018, 3:58 PMby lazy
can cause memory leaks.
Notable one: https://twitter.com/chrisbanes/status/897075635142754305
Is this an old issue that has been solved in recent versions of kotlin or is it still a "gotcha" that the developer has to take care of?
If still a gotcha, any suggestion on how to handle values that might not be initialized? As far as I understand I can't access the delegate directly.adolev
10/22/2018, 4:14 PMadolev
10/22/2018, 4:16 PMwilliam
10/22/2018, 11:36 PMping
command would be -n 3
where -n
is the name and 3
is the value. One of the things I am stuck on is writing a parse function on the input that will output a type based on what the argument type. So in this example for -n 3
we would want the value returned to be 3
which is an Int
. In some other cases we would want to parse as a string, boolean, etc. I am not sure how to make this generic to allow for any return types. I thought about doing something like fun <T> parse(text: String, conversion: (String) -> T): T
where I could pass in a conversion function to turn a string into whatever value I wanted but I don't know how to supply a default value to that e.g. if none is provided just return it as a string. Thoughts?Varun Sharma
10/23/2018, 9:19 AMkiffin
10/23/2018, 9:54 AMsp33dy
10/23/2018, 12:53 PMGarouDan
10/23/2018, 12:56 PMfun myFunction(arg1: Type1, arg2: Type2, ..., argn: TypeN) {
val arguments = getAllArguments()
}
shikhar1234
10/23/2018, 2:37 PMluke_c
10/23/2018, 3:24 PMSlackbot
10/23/2018, 3:29 PMgildor
10/24/2018, 6:18 AM<http://play.kotlinlang.org|play.kotlinlang.org>
opensourced? I cannot find it.
Would be good to update kotlinx.coroutines version theresuppoze
10/24/2018, 9:01 AMval Foo = Bar()
and
val Foo
get() = Bar()
is that when using getter, the evaulation happens every time when accessing Foo
, right?marcinmoskala
10/24/2018, 9:23 AMPraemix
10/24/2018, 10:20 AMTsvetozar Bonev
10/24/2018, 1:48 PMGarouDan
10/24/2018, 1:52 PMclass MyIn {
fun myFunction() {
println("myFunction")
}
}
class MyOut {
val myIn: MyIn = MyIn()
}
class Test {
fun main() {
val myOut = MyOut()
// Calling myFunction from the myIn object this way. Maybe something with delegate?
myOut.myFunction()
}
}
Matheus
10/24/2018, 2:22 PM