Re: [PHP-DEV] Renaming type-hints to something else?

[email protected] (Levi Morrison)
Newsgroups php.internals
Message-ID <CAFMT4NrnXorDUfMfmKP8K4DQ532uJLyPx+QNqZKBO_08oQwvHA@mail.gmail.com>
On Tue, Sep 16, 2014 at 9:16 AM, Andrea Faulds <[email protected]> wrote:
> Hi!
>
> Here are my thoughts.
>
> The general concept should be called Optional Type Declarations, to replace “Type Hinting". They are type declarations, and they are optional. Thus the name. For the things themselves, they’re just Type Declarations, to replace “Type Hints".

My worry about "optional type declarations" is that once a type is
present it isn't optional anymore. Could be confusing and I am unsure
if that's any better than a "type hint".

If we change it, maybe just call them "type declarations". I think
just referring to them as "types" could be too ambiguous.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.