eric-milles commented on PR #2169:
URL: https://github.com/apache/groovy/pull/2169#issuecomment-2778828764

   Supporting `long` would not be a big step from what is there -- grammar 
support is done.  I can't envision the case where you would want linear 
iteration over that many elements.  Maybe a stream where you skipped a lot of 
indices?  You can open a new ticket that links back to GROOVY-10683 for this 
proposal.
   
   There is no specific error on `for (int i = 0, var x : y)` or `for (i, x = 0 
: y)`.  I tried to keep the grammar as short as possible since the classic for 
loop often starts with "int name".  In general we have a problem of "unexpected 
input" for out-of-bounds syntax.  
[GROOVY-9192](https://issues.apache.org/jira/browse/GROOVY-9192) speaks to this 
issue.
   
   I'm checking the subprojects for references to `ForStatement` in case there 
are any adjustments required.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@groovy.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to