I <3 Kotlin for many reasons, but its pattern matching is one of the biggest. Conditionally assigning values is so easy with "when" syntax. Compare Kotlin with JS for the example of categorising flights by length in hours - it's so much more succinct with Kotlin.
On twitter.com ♻️ 7 Retweets❤️ 85 Favorites2018 Jun 18Mood +1 🙂