[ 
https://issues.apache.org/jira/browse/GROOVY-11656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King resolved GROOVY-11656.
--------------------------------
    Fix Version/s: 5.0.0-alpha-13
       Resolution: Fixed

Proposed PR merged.

> 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
>             Fix For: 5.0.0-alpha-13
>
>
> 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