logoalt Hacker News

dtech • yesterday at 6:13 PM • 1 reply • view on HN

Kotlin has always had smart-casting in if and when (sort of switch) expressions, which are strictly more powerful than the current version of Java "pattern matching". Both don't do de-structuring which I would consider a basic requirement for pattern matching, but at least Kotlin didn't call it pattern matching.


Replies

sideeffffect • yesterday at 11:00 PM

[flagged]