frankdavid
12/13/2015, 12:46 PMvoddan
12/14/2015, 9:15 AMlateinit
in a pure kotlin code: http://stackoverflow.com/questions/34217789/how-to-reference-other-views-in-anko-dsl
The thing that may be used here is weakening the compiler checking. But lateinit
also implies an open java field (useful for reflection).voddan
12/14/2015, 9:15 AMvoddan
12/14/2015, 9:15 AMlateinit val
is going to be implemented?voddan
12/14/2015, 9:18 AMlateinit var
semantic; instead of that to have @jvmField lateinit var
voddan
12/15/2015, 2:15 AMdamian
12/15/2015, 2:49 AMdamian
12/15/2015, 2:59 AMorangy
abreslav
12/15/2015, 9:51 AMQ: Don't you think that this is mixing two concepts into one: late-initialization and initialization-via-reflection?It’s a philosophical question whether this is mixing or not, but I think that killing these two birds with one stone is a nice thing to do
Q2: Can someone explain to me howIt may well be never implemented, or never expose a Java field (while ais going to be implemented?lateinit val
var
would expose it). Asking all DI clients to write @jvmField lateinit var
is too `public static void main`y for usvoddan
12/15/2015, 12:46 PMvoddan
12/15/2015, 12:48 PMlateinit var
in its current state as a two-headed bird. Rather scary than cute ))abreslav
12/15/2015, 12:49 PMvoddan
12/15/2015, 12:51 PMabreslav
12/15/2015, 1:20 PMabreslav
12/15/2015, 1:20 PMevanchooly
12/15/2015, 1:33 PMevanchooly
12/15/2015, 1:34 PMkirillrakhman
12/15/2015, 2:03 PMDelegates.notNull
which has a clear contract. I don't think it undermines the nullability.damian
12/15/2015, 2:07 PMyole
12/15/2015, 2:26 PMevanchooly
12/15/2015, 2:28 PMevanchooly
12/15/2015, 2:28 PMyole
12/15/2015, 2:29 PMmg6maciej
12/15/2015, 2:56 PMabreslav
12/18/2015, 4:02 PMasync/await
and Kotlin.
On the bright side: we are going to support async/await
in one of the future versions of the language.
On the difficult side: to be able to do it later, we'd better reserve the syntax now, and this means that async
becomes a keyword.
In particular, libraries (including Kovenant and Anko) that currently have their own functions names async
will not be able to use them as async { … }
, which is unfortunate.
A workaround for these libraries would be saying async() { … }
instead.evanchooly
12/18/2015, 4:02 PMEugenio
12/18/2015, 4:02 PMdalexander
12/18/2015, 4:03 PMrafal
12/18/2015, 4:10 PMasync
keyword be doing? as android dev i'm particularly interested in android implementation. will async
spawn a new thread on jvm, use executor or maybe android's asynctask ?