Re: [RFC][DISCUSSION] Group Use Declarations
| From: | Marcio Almada | Date: | Sun, 01 Feb 2015 05:38:58 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Group Use Declarations | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81520@lists.php.net to get a copy of this message | ||
Hi, Leigh
> Feels a lot like Rust
>
> http://doc.rust-lang.org/reference.html#use-declarations
Yes, indeed Rust language is cited on the references section.
> I'm not opposed to the suggestion, we really should have a shorthand
> for condensing use declarations
That's good to know, During the research phase it became obvious that a
majority part of the user base would like to have a shorthand syntax for
use declarations.
> I just wonder if it could feel more "PHP".
We tried other syntaxes and this one seemed the most appropriate because:
a) Looks a lot like the already implemented traits conflict resolution
b) Doesn't require to reserve new keywords
c) It requires a minimal implementation and is easy to read and parse
> Maybe I'm just nitpicking and it will grow on me :)
FYI, suggestions for alternatives are still welcome. But I really hope you
end up liking the current proposal even more.
Thanks.