Intspan's string representation was inspired by network news / UUCP, back in the first days of Usenet / Internet before the real Internet. So it was really only designed for whole numbers, not negatives. The syntax for negatives IS very clunky, mostly because they are rarely exercised/used in most of the use cases.
I like that "generalized range" operator from R. And it's a nice closed interval, not the half-open annoyance of Python's range() function.
2 comments
[ 2.5 ms ] story [ 20.2 ms ] threadIn R:
In intspan: So the syntax is a little funky.Another thing is that R will allow you to go from big to small:
Whereas intspan doesn't seem to support this at all: Very cool though!I like that "generalized range" operator from R. And it's a nice closed interval, not the half-open annoyance of Python's range() function.