Re: [PHP-DEV] [RFC] Constructor Property Promotion

2020-04-01 Thread Markus Fischer
Hi, On 2020-03-26 14:30, Nikita Popov wrote: I would like to submit the following RFC for your consideration: https://wiki.php.net/rfc/constructor_promotion This is based on one off the suggestions made in https://externals.io/message/109220, and some existing discussion on the topic can be

Re: [PHP-DEV] [VOTE] Compact Object Property Assignment

2020-04-01 Thread Bishop Bettini
On Wed, Apr 1, 2020 at 1:07 PM Jakob Givoni wrote: > > It seems to me it's pretty obvious it's not about the syntax anyway - > nothing would please the people who find COPA useless and any syntax > would be great for people who find it useful! > Anything in between just feels like discussing

Re: [PHP-DEV] [VOTE] Compact Object Property Assignment

2020-04-01 Thread Jakob Givoni
Hi Andrea, On Wed, Apr 1, 2020 at 10:35 AM Andrea Faulds wrote: > > Maybe it would be good to allow multiple-choice voting on why the RFC > was not voted for, and also to provide an option in the syntax vote for > not liking any of the syntax options, rather than just “Irrelevant”. Right. I

Re: [PHP-DEV] [VOTE] Compact Object Property Assignment

2020-04-01 Thread Andrea Faulds
Hi Jakob, Jakob Givoni wrote: Heads up! I've moved the RFC to the voting phase: https://wiki.php.net/rfc/compact-object-property-assignment Voting is open until the end of Monday, April 13 (your time zone :-). Good night, Jakob Maybe it would be good to allow multiple-choice voting on

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-04-01 Thread Rowan Tommins
On 01/04/2020 12:19, Ilija Tovilo wrote: We can't really do that since break already accepts an integer telling it how many enclosing structures it should jump out of. Sure, but we could use "return", or some other keyword. My point was that the syntax could look a lot closer to a switch

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-04-01 Thread Ilija Tovilo
Hi Rowan I agree that the structure of the RFC is sub optimal. Honestly, I've rewritten and moved things at least 5 times and it's still not good. I'll see how I can improve it. > so we could maybe combine them with the break keyword: > > $y = switch ($x) { > case 0: > break 'Foo';

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-04-01 Thread Rowan Tommins
On 01/04/2020 09:56, Rowan Tommins wrote: If the intention is to make this feel like an expression version of the switch statement, then making it look more similar would make sense. To expand on this a bit, if the aim is "a switch statement, but usable as an expression", then it would make

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-04-01 Thread Rowan Tommins
On 31 March 2020 19:50:59 BST, Ilija Tovilo wrote: >There's been a fundamental disagreement on what the switch expression >should actually be. Due to the conflicting feedback I no longer know >how to proceed. I think this confusion is there in your proposal, not just in people's responses to

Re: [PHP-DEV] [RFC][POLL] Switch expression

2020-04-01 Thread Ilija Tovilo
Hi internals After Levis email yesterday we discussed his suggestions in private. I did some investigation and did find a way to reuse the current switch syntax. The main problem of the ambiguity was the empty switch statement vs expression: ``` // Could be a switch expression or a switch

Re: [PHP-DEV] [RFC] Change default PDO error mode

2020-04-01 Thread Matteo Beccati
Hi Allen, +1 from me. If you need some help with the implementation, pls let me know. Cheers On 28/03/2020 20:02, AllenJB wrote: > Hi, > > I present for discussion an RFC to change the default PDO error mode: > > https://wiki.php.net/rfc/pdo_default_errmode > > Previous discussion: