Re: switch in Groovy 5

2023-08-19 Thread Paul King
Thanks Rémi, The description for the enhancements to switch currently in the release notes is very much a placeholder. It is quite old, in fact from memory it was carried over from the Groovy 4 release notes where it was removed when we drew the line for Groovy 4 functionality. If it makes the cut

switch in Groovy 5

2023-08-19 Thread Remi Forax
Hello, reading the proposed enhancements for Groovy 5.0 I've several remarks, the proposed destructuring syntax is ambiguous switch(point3D) { case (a, b, c) -> ... } It's not clear if a, b and c are existing local variables (declared above) or fresh new bindings. Choosing fresh new varia