[PHP-DEV] [RFC-DEV] A concern from @bwoebi about ??=

2016-04-02 Thread Midori Kocak
Hi, I was asking Why ??= can't be equal to $a = $a ?? $b; or $a ?? $a = $b; and there was an example from @bwoebi. Can you please also check that? Here is the gist I wrote based on his code. https://gist.github.com/midorikocak/c5325d19699254f6926af8eebdd1ee8a

[PHP-DEV] Tests for null coalescing assignment operator

2016-04-02 Thread Midori Kocak
Dear All, Based on the concerns I wrote some tests. Can you check those and give feedback? Also, in ruby, $a ||= $b, the implementation is not equal to $a = $a || $b, but is equal to $a || $a = $b; I am a little bit confused, I am not entirely sure, but I guess this approach would solve our pro

Re: [PHP-DEV] [RFC Discussion] Typed Properties

2016-04-02 Thread Björn Larsson
Good evening,Den 2016-03-31 kl. 10:34, skrev Joe Watkins: Morning, Given that public is implied for all properties above there is a value in having the same rule for type. public $bar, int $foo; What does this mean? If it's not an error, what does this mean ? public $bar, int $foo, $qux; I

Re: [PHP-DEV] Combine ??= and ?:= assignment operator rfc's.

2016-04-02 Thread Joe Watkins
Evening internals, It doesn't matter that NCE passed, the job is not finished. The RFC will stand forever as the first piece of documentation available for this feature, and it's terrible. The patch is also broken, I'm aware that Sara has been working on an alternative implementation

Re: [PHP-DEV] [VOTE] var deprecation

2016-04-02 Thread Björn Larsson
Hi, Thanks for a well specified RFc and I got a nifty script to update my old PHP 5.2 code :-) Regards //Björn Larsson Den 2016-03-31 kl. 14:41, skrev Colin O'Dell: The voting period for the "var deprecation" RFC has ended. The final vote was 31 in favor and 23 against. The 2/3 majority requ

Re: [PHP-DEV] Combine ??= and ?:= assignment operator rfc's.

2016-04-02 Thread Björn Larsson
Well, now the RFC has passed so congratulation on that one! I can agree a bit that the RFC itself is a bit under specified, but what to do about it? Some options: - Expand it in the PHP documentation, but then the documentation becomes the master not the RFC itself. - Update the RFC itself with

[PHP-DEV] [RFC Accepted / Voting Closed] Null Coalescing Assignment Operator ??=

2016-04-02 Thread Midori Kocak
Dear All, The voting of Null Coalescing Assignment Operator RFC https://wiki.php.net/rfc/null_coalesce_equal_operator is accepted with 2/3 majority, with 37 positive and 4 negative votes. Thank you all of your votes and feedbacks. Midori