[RFC] Add an operator for ranges to D. Pros and cons?
Dejan Lekic
dejan.lekic at gmail.com
Wed Nov 7 13:51:57 PST 2012
bearophile wrote:
> Dejan Lekic:
>
>> I already did try using the tilda operator for a while, then I
>> realised that
>> people are getting confused thinking the line is concatinating
>> strings, then
>> then realise those are ranges...
>
> "~" is used for all arrays (while array.Appender used put for
> mysterious reasons). If more and more D code starts using "~" to
> concatenate ranges or arrays, I think D programmers will get used
> to this more general meaning.
>
> Bye,
> bearophile
~ with arrays has different semantics I fear.
--
Dejan Lekic - http://dejan.lekic.org
More information about the Digitalmars-d
mailing list