cedric
12/03/2017, 4:09 AMEither
is still error prone: the compiler won't prevent you from accessing the field that's not been setAndreas Sinz
12/03/2017, 12:31 PMkarelpeeters
12/03/2017, 8:17 PM.bat
in the user's startup folder that runs the jar file.aljosa
12/04/2017, 2:21 AMDizarray
12/04/2017, 4:28 AMclass DefaultList(val name: String = "", val friends: List<String>)
class ListDefault(val friends: List<String>, val name: String = "")
fun foo() {
val instance = DefaultList(arrayListOf("blah"))
val another = ListDefault(arrayListOf("blah"))
}
Line, where I create instance
variable doesn't compile. But line with creating another
variable is ok. Do I really need to have a variable with default value at the end of primary constructor or is it a bug?kirillrakhman
12/04/2017, 8:45 AMqwert_ukg
12/04/2017, 9:31 AMqwert_ukg
12/04/2017, 9:45 AMrrader
12/04/2017, 10:10 AMDario Pellegrini
12/04/2017, 10:41 AMalexcouch
12/04/2017, 3:40 PMsnowe
12/04/2017, 5:34 PMincomes:
HOURLY_SALARY_BASE_WAGE_INCOME:
- types: "PAYSTUB"
- types: "W2"
bkenn
12/04/2017, 7:59 PMError:(3, 1) Kotlin: The feature "multi platform projects" is experimental and should be enabled explicitly.
I cannot find any documentation on where to enable multiplatform build. I tried
kotlin {
experimental {
multiplatform 'enable'
}
}
but this doesn't work. Anyone run into this issue?bj0
12/04/2017, 8:46 PMremoveAt
implies passing an index though ?karelpeeters
12/04/2017, 8:48 PMkarelpeeters
12/04/2017, 9:04 PMtipList = tipList.dropAt(index)
karelpeeters
12/04/2017, 9:06 PMkarelpeeters
12/04/2017, 10:45 PMif (str.isNullOrBlank()) "other" else str
pniederw
12/05/2017, 1:41 AMqwert_ukg
12/05/2017, 7:44 AMoblakr24
12/05/2017, 8:58 AMpdegand
12/05/2017, 10:59 AMByteArray
to a String
and the otherway arround ?
I'm doing some crypto and Cipher
is using ByteArray
as its input but i want to put the input inside a data class
and data class
are not happy with Arrays
.
So can i simply convert the the ByteArray to string to store inside my data class and re-convert the string to bytearray when i need to pass it to a cipher ?r4zzz4k
12/05/2017, 11:39 AMnfrankel
12/05/2017, 2:20 PMKotlinAntTaskUtil.kt
file under the cover
which checks for the existence of files, not classes on the classpath
1. i’ve to rename files and lose versions, i can live with that
2. i cannot use the embeddable compiler, and run into classpath issues regarding conflicting guava versions
ok, this is very specific
still, hints appreciateddanielspeixoto
12/05/2017, 9:06 PMg4sarma
12/05/2017, 10:23 PMedwardwongtl
12/06/2017, 8:17 AMkael
12/06/2017, 11:36 AMdeinit
in Kotlin/Native?arild
12/06/2017, 12:35 PMoverride fun onCompleted() = Unit
noncom
12/06/2017, 2:41 PMnoncom
12/06/2017, 2:41 PMnatpryce
12/06/2017, 3:52 PMnapperley
12/06/2017, 8:47 PMnoncom
12/07/2017, 9:39 AMdeviant
12/07/2017, 11:09 AMnoncom
12/07/2017, 4:23 PMdeviant
12/07/2017, 5:25 PMnoncom
12/07/2017, 10:31 PM