Capturing when subject in a variable damm that is ...
# announcements
k
Capturing when subject in a variable damm that is awesome!
👍 8
f
Yeah I never realized how much I needed this
j
It does look a lot better than
someExpression.let{when(it){...}}
k
I have realized this very often and I've been frustrated every time simple smile
e
time for
while
now..
k
Ah true, that's needed often too!
Might as well make assigments expressions.
e
k
I'll comment on the issue later today, but this can lead to inconsistent behaviour. Should
!(val line = getNextLine()).isNullOrEmpty()
also work? Should arbitrary expressions work?
I'm in favour of having assignents or at least declarations be expressions too.
val a = val b = 3
🧌
e
🧌