DIP58: ".." as a Binary Operator

Mason McGill mmcgill at caltech.edu
Mon Mar 17 12:07:44 PDT 2014


On Monday, 17 March 2014 at 17:41:16 UTC, bearophile wrote:
> Mason McGill:
>
>> http://wiki.dlang.org/DIP58
>
> Seems nice.

Thanks.  There are a few awkward parts to maintain compatibility, 
but that seems to be the only way to go.

> But the syntax a..b..step is not very nice.

Do you not like the order?  Because it was actually a..step..b 
(like MATLAB/Julia, not like Python).  Or do you not like the 
"verbosity" of all those dots (a:step:b would be better)?  Or is 
it the readability issues if floating point literals were mixed 
in there?

>
> Bye,
> bearophile



More information about the Digitalmars-d mailing list