...and introducing 'number' would also be a huge BC break (even in our codebase there's a class named 'Number').
Best regards, Benas On Sun, Nov 8, 2020, 7:26 PM Reindl Harald (privat) <[email protected]> wrote: > > > Am 08.11.20 um 18:09 schrieb Eugene Sidelnyk: > > Hello, internals! > > > > What do you think about creating shorthand `number` for `int|float`? > > nothing because: > > a) float accepts int anyways > b) overloading the engine for each and every nuance is not helpful > c) union types are clear and readable > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >
