[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939522#comment-17939522 ] ASF GitHub Bot commented on GROOVY-10683: - codecov-commenter commented on PR #2

Re: [PR] GROOVY-10683: support `for (index, item in list)` looping [groovy]

2025-03-30 Thread via GitHub
codecov-commenter commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764891027 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2169?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Updated] (GROOVY-3898) [PARROT] Allow the specification of types when initializing multiple iteration variables in a "for" construct

2025-03-30 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-3898: Description: {{def (int i, int j) = [0,0]}} works as a stand alone assignment, but it does not wo

[jira] [Created] (GROOVY-11595) for loop variable modifiers

2025-03-30 Thread Eric Milles (Jira)
Eric Milles created GROOVY-11595: Summary: for loop variable modifiers Key: GROOVY-11595 URL: https://issues.apache.org/jira/browse/GROOVY-11595 Project: Groovy Issue Type: Bug Re

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939520#comment-17939520 ] ASF GitHub Bot commented on GROOVY-10683: - codecov-commenter commented on PR #2

Re: [PR] GROOVY-10683: support `for (index, item in list)` looping [groovy]

2025-03-30 Thread via GitHub
codecov-commenter commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764811923 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2169?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-11595) for loop variable modifiers

2025-03-30 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939519#comment-17939519 ] Eric Milles commented on GROOVY-11595: -- https://github.com/apache/groovy/pull/2169

Re: [PR] GROOVY-10683: support `for (index, item in list)` looping [groovy]

2025-03-30 Thread via GitHub
codecov-commenter commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764765742 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2169?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939510#comment-17939510 ] ASF GitHub Bot commented on GROOVY-10683: - codecov-commenter commented on PR #2

[jira] [Updated] (GROOVY-3898) [PARROT] Allow the specification of types when initializing multiple iteration variables in a "for" construct

2025-03-30 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles updated GROOVY-3898: Language: groovy > [PARROT] Allow the specification of types when initializing multiple > iterati

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939497#comment-17939497 ] ASF GitHub Bot commented on GROOVY-10683: - codecov-commenter commented on PR #2

Re: [PR] GROOVY-10683: support `for (index, item in list)` looping [groovy]

2025-03-30 Thread via GitHub
codecov-commenter commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764642795 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2169?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939496#comment-17939496 ] ASF GitHub Bot commented on GROOVY-10683: - codecov-commenter commented on PR #2

Re: [PR] GROOVY-10683: support `for (index, item in list)` looping [groovy]

2025-03-30 Thread via GitHub
codecov-commenter commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764625268 ## [Codecov](https://app.codecov.io/gh/apache/groovy/pull/2169?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&ut

[jira] [Closed] (GROOVY-11594) Bump junit5 to 5.12.1

2025-03-30 Thread Daniel Sun (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Sun closed GROOVY-11594. --- Fix Version/s: 5.0.0-alpha-13 4.0.27 Assignee: Daniel Sun Resolut

Re: [PR] GROOVY-10683: support `for (item in list index i)` looping [groovy]

2025-03-30 Thread via GitHub
eric-milles commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764610294 I'm going to push just the clean ups as a commit that can be reviewed and cherry-picked on its own. The `for (int i, var e in x)` makes sense as simple and understandable. I should b

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939494#comment-17939494 ] ASF GitHub Bot commented on GROOVY-10683: - eric-milles commented on PR #2169: U

Re: [PR] GROOVY-10683: support `for (item in list index i)` looping [groovy]

2025-03-30 Thread via GitHub
glaforge commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764532875 I like the Python approach suggested by @blackdrag, it's quite natural (and certainly familiar for those who have done some Python) -- This is an automated message from the Apache Git S

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939481#comment-17939481 ] ASF GitHub Bot commented on GROOVY-10683: - glaforge commented on PR #2169: URL:

Re: [PR] GROOVY-10683: support `for (item in list index i)` looping [groovy]

2025-03-30 Thread via GitHub
blackdrag commented on PR #2169: URL: https://github.com/apache/groovy/pull/2169#issuecomment-2764527455 Daniel's variant is very near to what I know from Python: for idx,data in enumerate(content_list): print(idx) # will print the index of the loop starting from 0

[jira] [Commented] (GROOVY-10683) Consider enhancing for loop to provide access to loop index or iterator

2025-03-30 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939480#comment-17939480 ] ASF GitHub Bot commented on GROOVY-10683: - blackdrag commented on PR #2169: URL

[jira] [Commented] (GROOVY-11591) safe call evaluates arguments

2025-03-30 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939477#comment-17939477 ] Jochen Theodorou commented on GROOVY-11591: --- I think the correct way would be