I suggested CodeNarc first partly because it would be a little bit of work
to add warnings - the Groovy compiler doesn't really have any at present.
Also, Groovy has tried to not be too opinionated. If you leave those
semicolons in, Groovy won't complain. Of course removing the semicolons is
its
Yes, but what about all the (hopefully many) people new to Groovy, who don't
use CodeNarc ? How do you educate them about what is idiomatic Groovy
?Especially in cases like this, where a completely equivalent Groovy
alternative exists...
I imagine something along the line:
Warning: Using {...}
Will do. What do we think about the required strictness of the RHS list literal
matching the LHS array type ? Should this be required to be more 1:1 than in
the "as" case ?E.g. shallint[][][] aaa3 = 1still be valid ?
Cheers,mg
Ursprüngliche Nachricht Von: Paul King