elect
09/05/2017, 11:59 AMelect
09/05/2017, 12:00 PMInt.xor(enum)
, enum.xor(enum)
, enum.xor(int)
, repeated for or
, and
, has
, hasnt
, wo
..elect
09/05/2017, 12:01 PMagrosner
09/05/2017, 12:47 PMagrosner
09/05/2017, 12:52 PMnatpryce
09/05/2017, 12:54 PMnatpryce
09/05/2017, 12:55 PMdharrigan
09/05/2017, 1:26 PMcarlw
09/05/2017, 2:22 PMuser
09/05/2017, 2:24 PMJvmOverloads
is for functions using default parameters. Just marking the parameters as nullable using ?
is enough.user
09/05/2017, 2:25 PMuser
09/05/2017, 2:25 PMuser
09/05/2017, 2:26 PMString?
as well, since updateItem
takes a T
. So in your case T
is String
.hhariri
wintus
09/05/2017, 2:30 PMw: [kapt] Sources output directory is not specified for app_main, skipping annotation processing
. How do I specify a sources output folder? I've done some Android programming previously and never had this problem, although this time my gradle project has multiple modules and no root project sources.
Edit: nvm, found a working fix from here: https://github.com/griffio/dagger2-kotlinelect
09/05/2017, 3:16 PMflags has property
2) property in flags
arekolek
09/05/2017, 3:25 PMvar res = someJavaFuncThatActuallyReturnsNull()
// res is now SomeJavaType!
// at this point I can start passing 'res' around and later access anything on it and get an NPE, Kotlin didnt help at all
57 replies
It would be nice if Kotlin warned you when when assigning platform types to non-null properties. Like for example:
class ExampleActivity : Activity {
lateinit var array: IntArray
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
array = intent.getIntArrayExtra("array")
// throws IllegalStateException: getIntArrayExtra("array") must not be null
}
}
user
09/05/2017, 4:03 PMnyxcode
09/05/2017, 9:37 PMinline
functions except disk usage? Why not inline
(almost) every function?tenwit
09/05/2017, 9:41 PMtenwit
09/05/2017, 9:43 PMjw
09/05/2017, 9:44 PMrusshwolf
09/05/2017, 9:46 PMvillela
09/05/2017, 9:49 PMorangy
orangy
jw
09/05/2017, 9:52 PMorangy
jw
09/05/2017, 9:56 PMjw
09/05/2017, 9:56 PM