groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Franco <>
Subject Proposal - Pattern matching elixir way
Date Fri, 25 Nov 2016 23:29:16 GMT

I'm playing with elixir language lately, and I like the pattern matching
and guards in functions. I'm sure more proposal about pattern matching have
been done. And yes, in groovy switch is very powerful. But I think can be
interesting add something similar in groovy, so then groovy is more
functional friendly and readable.

Please take a look at this implementation idea, using AST's:

What do you think? not very interesting, maybe other implementation ideas,
too much complex, switch wins, ...

Thank you for your time.

Some links to elixir:

View raw message