[E-Lang] Immutable map operations

Tyler Close tclose@oilspace.com
Thu, 29 Mar 2001 14:05:07 +0100


MarkM wrote:
> >I think the real crux of this choice is what you decide to
> do with the
> >String+ operator. Does "+" append a single character?
> >
> >        str += 'a'
>
> To reiterate Ping's point, this never actually appended a
> character per se.
> It coerced the character to a one-character string, and
> then it appended the
> string.  In any case, with this proposal non-string
> collections would no
> longer respond to "+".

Should I also read this as strings *will* respond to "+"?

Assuming that's a yes and that you go with the current syntax proposal
for collections, I think it should be a long term goal to replace
String+ with String|. To that end, I think String+ should be marked as
deprecated right out of the gate. String+ should also be implemented
as expanding to String|.

Tyler