Re: switch destructuring

2020-08-10 Thread Leonard Brünings
gt; *From:* MG > *Sent:* Friday, August 7, 2020 3:37 PM > *To:* dev@groovy.apache.org; Milles, Eric (TR Technology) > > *Subject:* Re: switch destructuring > >   > > Hi eric, > > just to make my post clear: I do not desperately need pattern > matching, but I know f

Re: switch destructuring

2020-08-10 Thread Paul King
ould support Java syntax as > best as possible. > > > > *From:* MG > *Sent:* Friday, August 7, 2020 3:37 PM > *To:* dev@groovy.apache.org; Milles, Eric (TR Technology) < > eric.mil...@thomsonreuters.com> > *Subject:* Re: switch destructuring > > > > Hi er

RE: switch destructuring

2020-08-10 Thread Milles, Eric (TR Technology)
gap between Java and Groovy. And I think Groovy should support Java syntax as best as possible. From: MG Sent: Friday, August 7, 2020 3:37 PM To: dev@groovy.apache.org; Milles, Eric (TR Technology) Subject: Re: switch destructuring Hi eric, just to make my post clear: I do not desperately n

Re: switch destructuring

2020-08-07 Thread MG
Hi eric, just to make my post clear: I do not desperately need pattern matching, but I know from experience that (full blown) pattern matching is a very powerful feature (I implemented automatic series expansion of quantum field theory Green functions through functional derivatives using

RE: switch destructuring

2020-08-07 Thread Milles, Eric (TR Technology)
There is a pattern match syntax that is implemented using Groovy macros so that you can use the match "keyword". https://github.com/bsideup/groovy-pattern-match/blob/feature/dsl-like-matching/src/test/groovy/ru/trylogic/groovy/pattern/PatternMatchingMacroMethodsTest.groovy The current version