DIP58: ".." as a Binary Operator
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang at gmail.com>
Tue Mar 18 14:14:19 PDT 2014
On Monday, 17 March 2014 at 23:03:14 UTC, Robert Schadek wrote:
> On 03/17/2014 11:43 PM, Timon Gehr wrote:
>> No, it does not. The lexer does not need to change.
> you're right, but at some distant future I would like .. to be
> replaced by :
Yes. I also like the .. notation in Dart where you keep holding
onto a reference:
return new X() ..setSomething(1) ..answer=42 ..name="Somebody";
It is very handy sugar when dealing with DOMs.
More information about the Digitalmars-d
mailing list