DIP58: ".." as a Binary Operator

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Mar 17 12:57:08 PDT 2014


On Mon, Mar 17, 2014 at 07:07:44PM +0000, Mason McGill wrote:
> 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?
[...]

Not speaking for bearophile here, but I don't like using .. to mean two
different things (endpoints vs. step).


T

-- 
Study gravitation, it's a field with a lot of potential.


More information about the Digitalmars-d mailing list