dst = src rather than src dst

Janice Caron caron at serenityfirefly.com
Thu Sep 6 05:50:53 PDT 2007


-----Original Message-----
From: digitalmars-d-bounces at puremagic.com 
[mailto:digitalmars-d-bounces at puremagic.com] On Behalf Of Kirk McDonald
Sent: 06 September 2007 09:14
To: digitalmars-d at puremagic.com
Subject: Re: dst = src rather than src dst

> I just don't particularly like it very much. This is primarily because
> it's merely a syntax change.

D is an evolving language. It's had lots of syntax changes in the past.


> If the old syntax is retained, we have redundant syntaxes, which is annoying 
> and not a good thing.

Hmmm....

 char[] x;
 char x[];

Double Hmmm....

 void f(static int x) {...}
 void f(int x)() {...}
 template f(int x) { void f() {...} }

Hmmm again...

 find(s,'\n');
 s.find('\n');


> Before removing the current syntax, we have to of course consider
> the existing body of code which would have to be changed.

No one is suggesting making the old syntax illegal.


> Remember when implicit .ptr conversion was removed?

No one is suggesting making the old syntax illegal.


> Removing the existing syntax is Not An Option

No one is suggesting making the old syntax illegal.






More information about the Digitalmars-d mailing list