Re: Scalar type hints and scalar type name aliases cause confuson
| From: | Derick Rethans | Date: | Tue, 13 Oct 2015 11:11:09 +0000 |
| Subject: | Re: Scalar type hints and scalar type name aliases cause confuson | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88770@lists.php.net to get a copy of this message | ||
On Tue, 13 Oct 2015, Andrea Faulds wrote:
> Peter Cowburn wrote:
>
> > Failing that, at least making them available as aliases is a good
> > thing in my book. I never understood the reluctance to make use of
> > all existing names when the type declarations discussions were going
> > on. Fact is, people are going to type "double", "long", etc. in
> > their declarations... why get in their way?
>
> I don't want to allow them as aliases, because it means another thing
> to add to style guides. Some people would use 'float', some 'double',
> some would use 'int', some 'integer', some 'long'. It'd be
> much
> cleaner to just pick one and stick with it. Types don't need multiple
> names.
Having aliases is probably what I feel most strongly against as well.
cheers,
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Posted with an email client that doesn't mangle email: alpine