News for hackers. Stuff that matters.
Re:What's new in PHP 8? by pavlov on Friday August 14, 2020 @04:07AM (#24155178)
Easy questions but not obvious answers.

What kind of error to raise? Do you return a NaN? Throw an exception? Both have their uses.

Re:What's new in PHP 8? by darthrupert on Friday August 14, 2020 @04:51AM (#24155494)
Throw a standard exception. E.g. python calls it a ValueError. Returing NaN is clearly wrong design.