[
https://issues.apache.org/jira/browse/GROOVY-11599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-11599.
--------------------------------
Fix Version/s: 5.0.0-alpha-13
Resolution: Fixed
Proposed PR merged. Thanks all for the feedback.
> Make DGM#chop(Iterator, int...) lazy
> ------------------------------------
>
> Key: GROOVY-11599
> URL: https://issues.apache.org/jira/browse/GROOVY-11599
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Labels: breaking
> Fix For: 5.0.0-alpha-13
>
>
> Other similar DGM methods return iterators, chop returns a list. I propose to
> make a breaking change in Groovy 5, to align this method with similar
> methods. We don't believe the iterator variant of this method is widely used.
> The goal will be to add a bridge method so that pre-compiled Groovy classes
> will be unaffected. Users re-compiling under Groovy 5 would need to add a
> ".toList()" call or rework their code to make use of the iterator.
> I will send emails to the dev and users list. This issue is a placeholder
> while I prepare a draft PR and check backwards compatibility.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)