Re: Questions about syntax decisions

2010-05-19 Thread Bill Baxter
On Wed, May 19, 2010 at 3:55 AM, bearophile wrote: > >> As a side note, C++0x is going to add a new suffix operator to C++. This >> operator would be useful in its own right. Are there any plans to add a >> new opSuffix!("s") operator in D? > > Quite probably it will not become part of D, I think

Re: Questions about syntax decisions

2010-05-19 Thread bearophile
F. Almeida: > Now, in 2010, I've been giving D 2.0 a second chance and I'm happy > with it. Strings, dynamic arrays and hash tables couldn't be easier > to use and the option of metaprogramming presents way more > possibilities than C++. And there's a bit of possibility still to have AST macros i

Re: Questions about syntax decisions

2010-05-19 Thread F. Almeida
I see. The templated implementation is a big improvement. If the intention was to prevent people to turn "+" into concatenation for example, I'm afraid anybody really keen on doing so would still overload opAdd. As a side note, C++0x is going to add a new suffix operator to C++. This operator would

Re: Questions about syntax decisions

2010-05-19 Thread Simen kjaeraas
F. Almeida wrote: I have a few questions about syntax. 1) Operator overloading First of all, I find the operator overloading weird. This is because I'm used to C++'s syntax "operator+" and "operator+=", for example, instead of "opAdd" and "opAddAssign". While I understand that it gives plenty

Questions about syntax decisions

2010-05-19 Thread F. Almeida
Dear all, I once took a curious look at D in the past (circa 2004), and also read the DM newsgroups at the time that Stroustrup frequently posted here. Now, in 2010, I've been giving D 2.0 a second chance and I'm happy with it. Strings, dynamic arrays and hash tables couldn't be easier to use and