[RFC] Add an operator for ranges to D. Pros and cons?

bearophile bearophileHUGS at lycos.com
Wed Nov 7 10:44:26 PST 2012


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


More information about the Digitalmars-d mailing list