Raw String Literal Library Support

Alan Bateman Alan.Bateman at oracle.com
Thu Mar 15 15:42:09 UTC 2018


On 13/03/2018 13:47, Jim Laskey wrote:
> :
>
> We are recommending that trimLeft and trimRight use UWS, leave trim alone to avoid breaking the world and then possibly introduce trimWhitespace that uses UWS.
Right, it would too risky to change rim() as it goes all the way back to 
JDK 1.0.

If you introduce a method named "trimWhitespace" then I think it would 
be a surprising if were not aligned with "isWhitespace". I also share 
Stuart's concerns about the handling of control characters in legacy 
trim (or TWS in the proposal). Can you expand a bit on why UWS was 
recommended?

-Alan



More information about the core-libs-dev mailing list