On Fri, Mar 17, 2017 at 1:40 AM, Niklas Keller <m...@kelunik.com> wrote:
> Yes, that's a BC break. Instead of changing it, there could be a new
> function. But as it can be simply built in userland, I don't see much
> reason to have it in core.
>
100% agreed.  This is a 3 line function and doing it in userland means
you can use it in 5.5 or later.

function range($low, $high) {
  for ($i = $low; $i <= $high; ++$i) { yield $i; }
}

-Sara

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to