[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: an Interval factory
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 26 May 2010 11:13:52 +0200
2010/5/26 spir ☣ <denis.spir@gmail.com>:
> for i in Interval(start,stop,step) do ... end
>
It's a useful pattern, but rather slow if just implemented as an
iterator. I suppose the compiler could convert this case into the
same optimized code as numeric-for. But what then have we gained,
except a new notation which is more awkward to type?
steve d.