Andrei:

> Now we have a unified way of referring to elements in ranges. Walter's 
> excellent follow-up is that the compiler could use lowering such that 
> you don't even need to use first and last. You'd just use r[0] and r[$ - 
> 1] and the compiler would take care of handling these special cases.

Nice. Now you just need to lower the syntax  a~b  to mean chain(a,b) for lazy 
ranges, and we are starting to use ranges well enough, as lists in functional 
languages :-)

Bye,
bearophile

Reply via email to