March 18, 2014 Re: DIP58: ".." as a Binary Operator | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Schadek | 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.
|
Copyright © 1999-2021 by the D Language Foundation