[ 
https://issues.apache.org/jira/browse/GROOVY-11656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950136#comment-17950136
 ] 

ASF GitHub Bot commented on GROOVY-11656:
-----------------------------------------

paulk-asert merged PR #2216:
URL: https://github.com/apache/groovy/pull/2216




> 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)

Reply via email to