PROPOSAL: Simplified StringBuffer/StringBuilder syntax (original) (raw)

Derek Foster vapor1 at teleport.com
Sat Mar 28 13:23:43 PDT 2009


From: Mark Thornton <mthornton at optrak.co.uk> Sent: Mar 28, 2009 4:14 PM To: Derek Foster <vapor1 at teleport.com> Cc: coin-dev at openjdk.java.net Subject: Re: PROPOSAL: Simplified StringBuffer/StringBuilder syntax

Derek Foster wrote:

CONCATENATION: An expression of the form SB += S where SB is an RValue expression of type StringBuilder, and S is an expression of type String, shall be considered to have meaning as defined below. (Previously, this was a syntax error) SELF-CONCATENATION: An expression of the form SB = SB + S Why not allow any Appendable in these cases?

Good point. Sounds like a good suggestion to me. Thanks!

Derek



More information about the coin-dev mailing list