Hacker News new | past | comments | ask | show | jobs | submit login
Structural Pattern Matching in Java (apocalisp.wordpress.com)
2 points by DanielRibeiro on April 1, 2011 | hide | past | favorite | 1 comment



Perhaps I'm a bad software engineer, but I don't see anything terribly wrong with the instanceof solution. I'd certainly much rather read that 6 months later than "public abstract <T> T match(F<Empty, T> a, F<Leaf, T> b, F<Node, T> c)".




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: