I like the [a,b) notation from a mathatical point of view but it's
potentially unfamiliar notation to some (and may cause havoc in a text
editor with bracket matching!). I agree that the ellipsis notation is
cleanest but the difference between ".." and "..." isn't necessarily
intuitive to non-Ruby programmers.
Keeping *range* as a function would seem to be the best lowest common
denomiator and IMHO would adhere to the principle of least surprise. But
maybe that's my Python head talking :-)
On 8 May 2012 11:22, Michael Klishin <michael.s.klis...@gmail.com> wrote:
> Andres Taylor:
> > WDYT? And, is step an important to make this useful?
> Step is relatively rarely used in my experience. Ruby's literal is the
> least noisy. Scala's approach
> would work if Cypher was all similar to "point free Scala" but it's not.
> What about
> [1.0,2.0]
> [1.0,2.0)
> and so on?
> I personally wouldn't mind having range as a function.
> MK