Pikagi
Popular Tweets
About
Privacy Policy
Removal Request
Kotlin by JetBrains
@kotlin
6 years
New in Kotlin 1.3: Save the subject of a ‘when’ expression into a variable.
11
191
697
Download
Replies
Marc Aupont
@digimarktech
6 years
@kotlin
0
0
5
Download
Pierre Liebsch
@MobileFirstDev
6 years
@kotlin
i want to, but for my copany project you have to release it first :P
0
0
1
Mohammad Sarbandi
@mhshams
6 years
@kotlin
Now assignment is also an expression? Or only in this context?
1
0
0
Carlo
@carloxavier
6 years
@kotlin
Sounds pretty handy! Just a question about the example above
@kotlin
, shouldn't there be an else clause on this when expression? i.e we are not using a sealed class
1
0
0
Andrey Dernov
@ant_druha
6 years
@kotlin
Thats so cool! Literally yesterday I struggled with such exact need with the "switch" statement in another language:)
0
0
1
ProgMiner
@ProgMiner0
6 years
@kotlin
Why you are multiply syntax constructions instead of make assign an expression?
0
0
0
Seyed Jafari
@seyedjafariy
6 years
@kotlin
@brwngrldev
Handy
0
0
1
Sam Oen
@OenSam
6 years
@kotlin
Request is not a sealed class, so the when expression is not complete
1
0
0
Charles Muchene
@charlesmuchene
6 years
@kotlin
Variable declarations are expressions, assignments still not expressions. 😕
0
0
0