On 08.11.2020 at 18:26, Reindl Harald (privat) wrote:

> Am 08.11.20 um 18:09 schrieb Eugene Sidelnyk:
>>
>> What do you think about creating shorthand `number` for `int|float`?

If at all, it should be called `numeric`, because that is a reserved
word as of PHP 7.0.0:
<https://www.php.net/manual/en/reserved.other-reserved-words.php>.

> 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

ACK.  See <http://svn.php.net/viewvc?view=revision&revision=351123>.

--
Christoph M. Becker

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

Reply via email to