Hacker News new | ask | show | jobs
by kcorbitt 3887 days ago
With the caveat that I haven't tried it myself:

> What about pattern matching? This is where the word “sealed” above comes in handy; we can do an exhaustive pattern match without an else/otherwise branch

from https://medium.com/@octskyward/kotlin-fp-3bf63a17d64a#.8dbwa...

1 comments

This looks to be single value matching only and no compile time exhaustion checks. This looks like really nice (i.e. sugary) alternative to switch but not quite pattern matching.