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