Join Slack
Powered by
In Kotlin, assignments are not expressions. But ar...
# getting-started
f
Florian
06/22/2019, 10:56 AM
In Kotlin, assignments are not expressions. But aren't increment and decrement operators also assignments technically?
k
karelpeeters
06/22/2019, 10:57 AM
What's the point of that question? Feel free to call them assignments, or just call them increment and decrement.
f
Florian
06/22/2019, 11:19 AM
I am preparing a tutorial so I need to get rid of any uncertainty
t
Toddobryan
06/22/2019, 2:43 PM
In other languages, they are expressions with an assignment side effect, but that might not be how Kotlin handles them.
f
Florian
06/22/2019, 3:14 PM
Yea I guess it makes sense this way
k
karelpeeters
06/22/2019, 4:04 PM
The Kotlin grammer doesn't call it an assignment,
https://kotlinlang.org/docs/reference/grammar.html#assignment
f
Florian
06/22/2019, 7:21 PM
oh I see
2
Views
Open in Slack
Previous
Next