groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Franco <>
Subject Re: Proposal - Pattern matching elixir way
Date Tue, 29 Nov 2016 09:22:32 GMT
Thank you for the feedback :)

I agree annotations can be a bit 'magic' stuff. And I see Sergei's macros
looks great. So, I think I'll try Andres suggestion, create a external
library with ast's (without changing groovy syntax), I think can be similar
to GContracts. Then maybe in the future, can be moved to a nice groovy


2016-11-29 0:15 GMT+01:00 Roman Shaposhnik <>:

> On Fri, Nov 25, 2016 at 3:50 PM, Johannes Link <>
> wrote:
> > Using an annotation seems like a hackish way. I'd rather go with an
> extended
> > version of switch or even better a native matching parameter syntax.
> Just my
> > 2 cents.
> Same here: I feel like relying on annotations too much tends to create a
> very
> black-box'ish type of experience for developers: slap the right annotation
> on
> something and magic happens. When it works it is great, but when it doesn't
> once tends to spend a lot more time trying to figure out what went wrong in
> annotation heavy frameworks.
> Thanks,
> Roman.

View raw message