[PHP-DEV] Nested functions

2020-08-12 Thread Luis - SoftSAT Sistemas
>>  Le 12 août 2020 à 20:19, Luis - SoftSAT Sistemas >> a écrit : >> >>  In the effort to make PHP a better language i want to ask why not "fix" >> nested functions as suggested in >> (https://wiki.php.net/rfc/true-nested-function-support) or block their usage? >>  The current behavior is a lot

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Jakob Givoni
On Wed, Aug 12, 2020 at 9:08 PM Rowan Tommins wrote: > > On 12 August 2020 19:03:02 BST, Jakob Givoni wrote: > >> > Is > >> > > >> > > >> > > >> > on it's own an error? > >> > >> Yes. Basically this is an example of valid code in PHP 7 that will > >> break if @[] is adopted. > > > >Wow, that was

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Rowan Tommins
On 12 August 2020 19:03:02 BST, Jakob Givoni wrote: >> > Is >> > >> > >> > >> > on it's own an error? >> >> Yes. Basically this is an example of valid code in PHP 7 that will >> break if @[] is adopted. > >Wow, that was unexpected. By what logic? >Also, how long must I wait before I can put a sem

Re: [PHP-DEV] Nested functions

2020-08-12 Thread Claude Pache
> Le 12 août 2020 à 20:19, Luis - SoftSAT Sistemas > a écrit : > > In the effort to make PHP a better language i want to ask why not "fix" > nested functions as suggested in > (https://wiki.php.net/rfc/true-nested-function-support) or block their usage? > The current behavior is a lot unexpe

[PHP-DEV] Nested functions

2020-08-12 Thread Luis - SoftSAT Sistemas
In the effort to make PHP a better language i want to ask why not "fix" nested functions as suggested in (https://wiki.php.net/rfc/true-nested-function-support) or block their usage? The current behavior is a lot unexpected.  I am new here, sorry if it was already discussed, i can't find a good

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Jakob Givoni
On Tue, Aug 11, 2020 at 3:03 PM Theodore Brown wrote: > > On Tue, Aug 11, 2020 at 7:26 AM Chris Riley wrote: > > > On Tue, 11 Aug 2020 at 13:21, Derick Rethans wrote: > > > > > On Tue, 11 Aug 2020, Chris Riley wrote: > > > > > > > Quick question. > > > > > > > > What is the expected behaviour of

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Theodore Brown
On Wed, Aug 12, 2020 at 10:25 AM Sara Golemon wrote: > On Wed, Aug 12, 2020 at 9:48 AM Theodore Brown wrote: > > > It has just come to my attention that this RFC was rushed to vote > > after less than the minimum two week period required after it was > > brought up on list. Furthermore, discussi

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Andreas Leathley
On 12.08.20 17:25, Sara Golemon wrote: Changing the syntax isn't a feature. It's a refinement. One of the things our long release process provides is a chance to be absolutely certain before we introduce syntax we'll come to regret later. The current RFC does not discuss the BC breaks of each s

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Derick Rethans
On Wed, 12 Aug 2020, Sara Golemon wrote: > Maybe compromise on adding time to the vote end period so that the > total is greater than 4 weeks? You'd asked to get this done by beta3, which I miscalculated as being tagged on August 25th. But as it's actually a week later I have no problem extend

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Kalle Sommer Nielsen
Den ons. 12. aug. 2020 kl. 18.29 skrev Paul M. Jones : > It's premature. If we can't follow our own rules, why even have them? Agreed -- regards, Kalle Sommer Nielsen ka...@php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Paul M. Jones
> On Aug 12, 2020, at 10:25, Sara Golemon wrote: > > If others agree that it's premature, we can stop the vote, > but I'm not inclined to disrupt the process over such a small variance. It's premature. If we can't follow our own rules, why even have them? -- Paul M. Jones pmjo...@pmjones.io

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Sara Golemon
On Wed, Aug 12, 2020 at 9:48 AM Theodore Brown wrote: > It has just come to my attention that this RFC was rushed to vote > after less than the minimum two week period required after it was > brought up on list. Furthermore, discussion was still very active at > that time - I certainly didn't hav

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Theodore Brown
On Mon, Aug 10, 2020 at 3:41 AM Derick Rethans wrote: >I've just opened the vote to make sure we don't make a terrible mistake > with using the @@ syntax for attributes: > > https://wiki.php.net/rfc/shorter_attribute_syntax_change#voting > > The vote ends August 23, 24:00 UTC. It has just come t

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Aleksander Machniak
On 11.08.2020 16:54, Sara Golemon wrote: >> https://wiki.php.net/rfc/shorter_attribute_syntax_change#voting > Just chiming in to say all, y'all voting for @[...] are making a terrible > choice, and are you sure you're okay with it? It looks like the community is split, and it might actually be a

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-12 Thread Nikita Popov
On Tue, Aug 11, 2020 at 6:26 PM Andreas Leathley wrote: > On 11.08.20 18:07, Sara Golemon wrote: > > Writing this on PHP 7 (or any earlier version for that matter) would be > > valid syntax (ignored as a comment): > > > > #[SomeAttr(123)] > > function someFunc() {} > > > > That's what's meant by