I'm fine with anything as... well, being picky on this won't change the
fact that SPL's design and exceptions are a mess :P
If you are ok with that, I'm modifying soon the RFC, so that seekKey()
would throw OutOfBoundsException instead of returning bool. Thoughts?
@Ryan I've noticed that already, sorry. I'm not used yet to mailing lists
nor gmail as a reader for them.
Hello PHPeeps, I've updated the RFC! Have a look at it, please! (Sorry for
the engrish)
Wes
2016-11-23 15:29 GMT+01:00 Wes netmo.php@gmail.com:
I'm fine with anything as... well, being picky on this won't change the
fact that SPL's design and exceptions are a mess :PIf you are ok with that, I'm modifying soon the RFC, so that seekKey()
would throw OutOfBoundsException instead of returning bool. Thoughts?@Ryan I've noticed that already, sorry. I'm not used yet to mailing lists
nor gmail as a reader for them.
Hi!
Hello PHPeeps, I've updated the RFC! Have a look at it, please! (Sorry for
the engrish)
Now the RFC says " if the given key is present in the array the method
would successfully return null". While technically in PHP not returning
value and returning NULL
is the same thing, I'd just omit the whole
return thing altogether to remove temptation of somebody using it.
--
Stas Malyshev
smalyshev@gmail.com
2016-11-25 19:27 GMT+01:00 Stanislav Malyshev smalyshev@gmail.com:
Now the RFC says " if the given key is present in the array the method
would successfully return null". While technically in PHP not returning
value and returningNULL
is the same thing, I'd just omit the whole
return thing altogether to remove temptation of somebody using it.
Fixed!