November 07, 2012 Re: [RFC] Add an operator for ranges to D. Pros and cons? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | 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 |
Copyright © 1999-2021 by the D Language Foundation