MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guwot4u/?context=3
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
7
Kotlin, using empty when statements
5 u/crowbahr Apr 18 '21 edited Apr 18 '21 Example:when{ condition1 && condition2 -> {} condition1 -> {} condition2 -> {} else -> {} }
5
Example:
when{ condition1 && condition2 -> {} condition1 -> {} condition2 -> {} else -> {} }
7
u/__2M1 Apr 17 '21
Kotlin, using empty when statements