Shawn
12/27/2018, 6:22 PMrepositories = modules.associate { it to "<mailto:git@bitbucket.org|git@bitbucket.org>:my/${it}.git" }
xenoterracide
12/27/2018, 6:25 PMkarelpeeters
12/27/2018, 6:45 PMplotAPI
lazy:
val plotAPI by lazy { PlotAPI() }
Hamza
12/28/2018, 5:52 AMgildor
12/28/2018, 10:12 AMkarelpeeters
12/28/2018, 10:13 AMcontains
?Jakub Gwóźdź
12/28/2018, 10:23 AMJérôme Gully
12/28/2018, 11:18 AMINSTANCE
var is assigned to a tempInstance
to check if it is null ? and why in the synchronizrd block the INSTANCE
is assigned to instance
and the instance
is returned instead of INSTANCE
? I missunderstood something i guess.hhariri
12/28/2018, 3:46 PMnerses
12/28/2018, 3:50 PMgildor
12/28/2018, 3:51 PMBimawa
12/28/2018, 3:58 PMthomasnield
12/28/2018, 4:12 PMhttps://spectrum.ieee.org/image/MjcxNTUzNg.gif▾
karelpeeters
12/28/2018, 4:16 PMShawn
12/28/2018, 4:18 PMjoelpedraza
12/28/2018, 8:51 PMJoshK
12/29/2018, 4:07 AMK J
12/29/2018, 7:00 AMval items = mutableListOf<T>()
override fun <U : T> typedItems(): List<U> {
return items.mapNotNull { it as? U }
}
but this is not?
val oldStuff = mutableListOf<List<*>>()
val newStuff = oldStuff.mapNotNull { it as? ArrayList<*> }
Ramin
12/29/2018, 7:48 AMbenleggiero
12/29/2018, 5:25 PMitnoles
12/29/2018, 9:04 PMAndrew Gazelka
12/30/2018, 1:10 AMShawn
12/30/2018, 3:30 AMMaruru
12/30/2018, 7:15 AMWahib
12/30/2018, 10:48 AMfdlk
12/30/2018, 1:47 PMSebastian Sellmair [JB]
12/30/2018, 2:01 PMDaniel
12/30/2018, 2:06 PM{ }
optional when writing a anonymous class?
object : xyz(...) { }
Seems like a minor inconsistency since they are optional with 'normal' classesSaiedmomen
12/30/2018, 6:40 PMrunBlocking
doesn't workrobstoll
12/30/2018, 11:40 PMinterface I1{ fun foo(f: (Int) -> Int) }
interface I2{ fun foo(f: (String) -> String) }
class A: I1, I2{
override fun foo(f: (Int) -> Int){}
override fun foo(f: (String)-> String){} //same JVM signature
}
robstoll
12/30/2018, 11:40 PMinterface I1{ fun foo(f: (Int) -> Int) }
interface I2{ fun foo(f: (String) -> String) }
class A: I1, I2{
override fun foo(f: (Int) -> Int){}
override fun foo(f: (String)-> String){} //same JVM signature
}
Pavlo Liapota
12/30/2018, 11:52 PM@JvmName
will help?
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-name/index.htmlhudsonb
12/31/2018, 12:11 AM@JvmName
could be used as a work around (I havent tried it). We need a @Mangle
annotation or something that will mangle it for us on the Java side when we don't care about being callable from the Java side of things.Czar
12/31/2018, 7:48 AMinterface I1 {
fun foo(l: (Int) -> Int): Int
}
interface I2 {
fun foo(l: (String) -> String): String
}
class A : I1, I2 {
override fun foo(l: (Int) -> Int): Int = l(1)
override fun foo(l: (String) -> String): String = l("a")
}
fun test() {
println(A().foo { p: Int -> p * 2 })
println(A().foo { p: String -> p + p })
}
I guess problem is only there if the return type is the same.robstoll
12/31/2018, 9:22 AM