Re:Show HN: Motif – Scala-like pattern matching with Java 8
by johnlcox on Wednesday July 22, 2015 @02:33PM
(#9931429)
I haven't tried it with enums, but it should still be possible with Motif. I'll have to add some tests.
It's a little longer than your example since there is support for more than just Optional, but it's pretty similar.
[ Parent
| on HN ]
There are no comments on this comment yet.