What do you mean? "range" shouldn't be used as a function name since we might want to make it a type? What would such a type do?
Contain for instance "1 to and inclusive 2". I think it's been discussed previously, but it might have been some years ago. Ie, {x;a<=x<=b}, {x;a<=x<b}, {x;a<x<=b} or {x;a<x<b}.
I don't say we should save it in case we implement the type, but I feel that a "range" function should work on or with such ranges, not arrays or other datatypes.
/ Mirar
Previous text:
2003-03-06 12:29: Subject: negative indices in array ranges
Because it isn't always possible to change strings and arrays destructively, of course. It isn't relevant if it sometimes is destructive as an optimization since that never has any observable effect (or else something is broken).
Ranges are the 1..2 part. Save that if we ever implement such a type?
What do you mean? "range" shouldn't be used as a function name since we might want to make it a type? What would such a type do?
/ Martin Stjernholm, Roxen IS