Re: Alias for `int|float`

From: Date: Sun, 08 Nov 2020 17:28:08 +0000
Subject: Re: Alias for `int|float`
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-112211@lists.php.net to get a copy of this message
...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) <harry@rhsoft.net> 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 > >

« previous php.internals (#112211) next »