5 ms·
Swift, kotlin, Java
by adamwk 4y ago
Swift, kotlin, Java
- haspok 4y agoThere is no proper pattern matching / destructuring in either Java or Kotlin. There is a discussion about it in Kotlin, see https://youtrack.jetbrains.com/issue/KT-186/Support-pattern-matching-with-complex-patterns https://youtrack.jetbrains.com/issue/KT-186/Support-pattern-...
- pxc 4y agoalso Scala, which I'd take over Java any day
- docandrew 4y agoAda might be getting pattern matching soon too: https://github.com/AdaCore/ada-spark-rfcs/blob/master/prototyped/rfc-pattern-matching.rst https://github.com/AdaCore/ada-spark-rfcs/blob/master/protot...