Re: Alias for `int|float`
| From: | Sara Golemon | Date: | Mon, 09 Nov 2020 15:24:46 +0000 |
| Subject: | Re: Alias for `int|float` | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112214@lists.php.net to get a copy of this message | ||
On Sun, Nov 8, 2020 at 11:09 AM Eugene Sidelnyk <zsidelnik@gmail.com> wrote:
> What do you think about creating shorthand
number for
> int|float?
>
Others have pointed at a few reasons why not, but I'd like to add that if
we allow type aliasing, then projects can choose to define this or not.
I'd rather see the power (and tradeoffs) placed in the hands of script
developers.
-Sara