[PHP-DEV] Re: [RFC][DISCUSSION] PHP Namespace in core

2020-05-20 Thread Michał Brzuchalski
Hi Internals, I'm really sorry for the long delay on this topic. I think it's time to vote since there seems like no further discussion is needed. *So head's up!* I plan to open this topic for a vote. The vote will be simple Yes/No and requires to be accepted by 2/3 votes as always. Voting

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread tyson andre
Hi Dan Ackroyd, > I'd be happy to see function autoloading support in php overall. > It'd help in avoiding loading unnecessary polyfills, > or in large codebases with many global functions that are only occasionally > used. I forgot, but I'd also started the thread 

Re: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread tyson andre
Hi Dan Ackroyd, > Function + callable type autoloading > https://github.com/Danack/FunctionTypes/blob/master/2_autoloading_part_2.md I'd be happy to see function autoloading support in php overall. It'd help in avoiding loading unnecessary polyfills, or in large codebases with many global

[PHP-DEV] Reserved words and class name collisions

2020-05-20 Thread Jakob Givoni
Hello, It's a common thing to want to introduce a new keyword as a reserved word as part of an RFC. (Recently: match, mixed, guard, readonly...) These new keywords always lead to possible BC breaking changes because they become unusable for namespaces, class names, function names and global

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Benjamin Eberlei
On Wed, May 20, 2020 at 7:53 PM Ben Ramsey wrote: > > On May 20, 2020, at 12:07, Benjamin Eberlei wrote: > > > > 2. Rename PhpAttribute to Attribute in global namespace (independent of > the > > namespace RFC) > > > I suggested in a previous thread that we consider renaming `PhpAttribute` > to

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Benas IML
Hello, Would it possible to make a separate RFC for renaming `PhpAttribute` to `Attribute` and `PhpCompilerAttribute` to `CompilerAttribute`? Since it would a huge BC break changing this in PHP 8.1. Best regards, Benas Seliuginas

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Benjamin Eberlei
On Wed, May 20, 2020 at 7:37 PM Marco Pivetta wrote: > Hey Benjamin, > > > > On Wed, May 20, 2020 at 7:08 PM Benjamin Eberlei > wrote: > >> Hi everyone, >> >> the Attributes RFC was rather large already, so a few things were left >> open >> or discussions during

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Benas IML
Hey, I personally think that `UserlandAttribute` is too verbose and a quite useless change since just using `Attribute` will make little to no BC compatibility breaks (we know that thanks to Rowan, please check out Renaming PhpAttribute thread) and would also sound more natural. This would also

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Ben Ramsey
> On May 20, 2020, at 12:07, Benjamin Eberlei wrote: > > 2. Rename PhpAttribute to Attribute in global namespace (independent of the > namespace RFC) I suggested in a previous thread that we consider renaming `PhpAttribute` to `UserlandAttribute`, since this is the intent of the attribute,

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Larry Garfield
On Wed, May 20, 2020, at 12:07 PM, Benjamin Eberlei wrote: > Hi everyone, > > the Attributes RFC was rather large already, so a few things were left open > or discussions during the vote have made us rethink a things. > > https://wiki.php.net/rfc/attribute_amendments > > These points are

Re: [PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Marco Pivetta
Hey Benjamin, On Wed, May 20, 2020 at 7:08 PM Benjamin Eberlei wrote: > Hi everyone, > > the Attributes RFC was rather large already, so a few things were left open > or discussions during the vote have made us rethink a things. > >

[PHP-DEV] [RFC] Amendments to Attributes

2020-05-20 Thread Benjamin Eberlei
Hi everyone, the Attributes RFC was rather large already, so a few things were left open or discussions during the vote have made us rethink a things. https://wiki.php.net/rfc/attribute_amendments These points are handled by the Amendments RFC to Attributes: 1. Proposing to add a grouped

[PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-20 Thread Dan Ackroyd
Hi internals, A while ago, I spent some time thinking about callables, and how they are not very consistent, which makes people sad: https://wiki.php.net/rfc/consistent_callables The reason I didn't pursue that RFC is that although tidying up PHP core to be more consistent would be nice, it

[PHP-DEV] Fwd: PHP RFC about variables

2020-05-20 Thread Глеб Жуков
-- Forwarded message - От: Глеб Жуков Date: ср, 20 мая 2020 г. в 16:10 Subject: PHP RFC about variables To: If you look at Wikipedia, you can see that a variable in programming is a named, or otherwise addressed, area of memory whose address can be used to access data. The word

[PHP-DEV] PHP RFC about variables

2020-05-20 Thread Глеб Жуков
If you look at Wikipedia, you can see that a variable in programming is a named, or otherwise addressed, area of memory whose address can be used to access data. The word from this definition to which I would like to draw your attention is data.Is it really so that in PHP and other programming