You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/05/07 01:27:00 UTC
[jira] [Commented] (GROOVY-11656) Create SGM#getLength methods for StringBuilder/StringBuffer
[ https://issues.apache.org/jira/browse/GROOVY-11656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949869#comment-17949869 ]
ASF GitHub Bot commented on GROOVY-11656:
-----------------------------------------
paulk-asert opened a new pull request, #2216:
URL: https://github.com/apache/groovy/pull/2216
…ffer
> Create SGM#getLength methods for StringBuilder/StringBuffer
> -----------------------------------------------------------
>
> Key: GROOVY-11656
> URL: https://issues.apache.org/jira/browse/GROOVY-11656
> Project: Groovy
> Issue Type: New Feature
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
>
> This would allow arithmetic assignment operators to be used:
> {code:groovy}
> def sb = new StringBuilder()
> sb << 'foobar'
> sb.length -= 3
> assert sb.toString() == 'foo'
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)