Re: [PHP-DEV] Looking (not very far) ahead to PHP 7.1

2016-05-06 Thread Midori Kocak
say? What is your advice? Best wishes. Midori Kocak Computer Scientist & Engineer http://www.mynameismidori.com <http://www.mynameismidori.com/> “The most beautiful thing we can experience is the mysterious. It is the source of all true art and science.” Albert Einstein > On 06 Ma

Re: [PHP-DEV] [RFC] Square bracket syntax for array destructuring assignment

2016-04-07 Thread Midori Kocak
+1 > On 07 Apr 2016, at 14:21, Andrea Faulds wrote: > > Hi everyone, > > Bob and I have made an RFC which proposes an alternative syntax for list(): > > https://wiki.php.net/rfc/short_list_syntax > > Please tell us your thoughts. > > Thanks! > -- > Andrea Faulds > https://ajf.me/ > > --

Re: [PHP-DEV] Tests for null coalescing assignment operator

2016-04-03 Thread Midori Kocak
Joe, Also that would be more helpful if you wrote some examples or guides, with your advises instead of writing one sentence emails. I would be more happy as a rookie that way. Yours, Midori > On 03 Apr 2016, at 18:17, Midori Kocak wrote: > > Hello Joe, > > Those were ex

Re: [PHP-DEV] Tests for null coalescing assignment operator

2016-04-03 Thread Midori Kocak
t.php> > > Cheers > Joe > > On Sun, Apr 3, 2016 at 3:41 PM, Midori Kocak <mailto:mtko...@gmail.com>> wrote: > Yes, I think I should too. But still no feedbacks :( > > > On 03 Apr 2016, at 13:15, Björn Larsson > <mailto:bjorn.x.lars...@telia.com>&g

Re: [PHP-DEV] Tests for null coalescing assignment operator

2016-04-03 Thread Midori Kocak
be best to finish implementation and tests first. > > Den 2016-04-03 kl. 03:17, skrev 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

[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
s that should raise errors to my test? Yours, Midori > On 25 Mar 2016, at 13:42, Nikita Popov wrote: > > On Fri, Mar 25, 2016 at 11:59 AM, Midori Kocak <mailto:mtko...@gmail.com>> wrote: > Hi Everyone, > > I think it's better idea to combine those two assignme

[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

Re: [PHP-DEV] Re: [RFC Proposal] Null Coalesce Equal Operator

2016-03-30 Thread Midori Kocak
2016-03-24 kl. 23:49, skrev Mutlu Kocak: >> thank you so much. I updated the name. >> >> On Thursday, 24 March 2016, Andrea Faulds wrote: >> >>> Hi Midori, >>> >>> Midori Kocak wrote: >>> >>>> Hi, >>>> >>&

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

2016-03-25 Thread Midori Kocak
http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html <http://www.rubyinside.com/what-rubys-double-pipe-or-equals-really-does-5488.html> > On 25 Mar 2016, at 13:42, Nikita Popov wrote: > > On Fri, Mar 25, 2016 at 11:59 AM, Midori Kocak <mailto

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

2016-03-25 Thread Midori Kocak
Hi Everyone, I think it's better idea to combine those two assignment operator RFC’s. So I am going to close the current one and open ??= with ?:= What do you think? And we have to find better names. Wishes, Midori Kocak -- PHP Internals - PHP Runtime Development Mailing List To unsubs

Re: [PHP-DEV] Re: [RFC Proposal] Null Coalesce Equal Operator

2016-03-24 Thread Midori Kocak
Hi, I changed the name but I really don’ know how to change the url :) Midori > On 24 Mar 2016, at 21:35, Andrea Faulds wrote: > > Hi, > > Sara Golemon wrote: >> Changing "equal" to "assignment" seems to have been the suggestion. >> I've taken that into the short-ternary version. And as a mi

Re: [PHP-DEV] Add spaceship assignment operator

2016-03-24 Thread Midori Kocak
actually it could be proposed to C in 1970 in a same manner for += operator by saying +== and +=== and also +. But hence Dennis Ritchie is dead and he accepted += as a founding father, we have no chance to ask him. Can we ask maybe to Bjarne Stroustrup as being one of another founding father

Re: [PHP-DEV] Re: [RFC Proposal] Null Coalesce Equal Operator

2016-03-24 Thread Midori Kocak
there were no suggestions. Do you have one? > On 24 Mar 2016, at 16:36, Björn Larsson wrote: > > Den 2016-03-13 kl. 02:59, skrev Andrea Faulds: >> Hi Midori, >> >> Midori Kocak wrote: >>> Forgive my rookieness and let me introduce my first RFC

[PHP-DEV] [RFC][Voting] Null Coalesce Equal Operator

2016-03-24 Thread Midori Kocak
Hi, Remember Null coalesce Equal Operator ??= She is in voting phase now. :) https://wiki.php.net/rfc/null_coalesce_equal_operator Thank you so much, Midori http://www.mynameismidori.com

Re: [PHP-DEV] [RFC][Voting] Null Coalesce Equal Operator

2016-03-24 Thread Midori Kocak
Sorry I opened it now. You can vote. > On 24 Mar 2016, at 16:06, Marco Pivetta wrote: > > Hey Midori, > > On 24 March 2016 at 16:02, Midori Kocak <mailto:mtko...@gmail.com>> wrote: > Hi, > > Remember Null coalesce Equal Operator ??= She is in voting phase

Re: [PHP-DEV] [RFC Proposal] Null Coalesce Equal Operator

2016-03-09 Thread Midori Kocak
s" <mailto:derokor...@gmail.com>> wrote: > On Wed, Mar 9, 2016 at 11:14 AM, Midori Kocak <mailto:mtko...@gmail.com>> wrote: > > > Hi all, > > > > Remember my question about ??= operator? > > > > Forgive my rookieness and let me introdu

[PHP-DEV] [RFC Proposal] Null Coalesce Equal Operator

2016-03-09 Thread Midori Kocak
1795 <https://github.com/php/php-src/pull/1795> you can see a terminal working with my implementation also here: http://imgur.com/zLlVFup <http://imgur.com/zLlVFup> I hope I managed to write a simple and understandable RFC. Thank you all for your efforts. Best Wishes, Midori Kocak Computer Scientist & Engineer / ZCPE http://www.mynameismidori.com <http://www.mynameismidori.com/>

Re: [PHP-DEV] Can you please give me karma? Understanding Karma as a Buddhist

2016-03-09 Thread Midori Kocak
Thank you very very much. I appreciate that. Now it’s the level 3. Best wishes, Midori > On 09 Mar 2016, at 17:46, Ferenc Kovacs wrote: > > > > On Wed, Mar 9, 2016 at 1:07 AM, Midori Kocak <mailto:mtko...@gmail.com>> wrote: > Hello, > > You remember m

[PHP-DEV] Can you please give me karma? Understanding Karma as a Buddhist

2016-03-08 Thread Midori Kocak
Hello, You remember my question? A question about null coalescing operator.. $this->request->data['comments']['user_id'] = $this->request->data['comments']['user_id'] ?? ‘value’; … And you remember my pull request? https://github.com/php/php-src/pull/1795

[PHP-DEV] Equal Null coalescing operator ??= https://github.com/php/php-src/pull/1795

2016-03-08 Thread Midori Kocak
Remember my question? $this->request->data['comments']['user_id'] = $this->request->data['comments']['user_id'] ?? ‘value’; I want to check if some var is null and if the same var is null set the same var to ‘value’. Hence I am repeating the same variable after the equal operator, this does n

[PHP-DEV] Equal Null Coalescing Operator

2016-03-08 Thread Midori Kocak
nce I am repeating the same variable after the equal operator, this does not feels right. So I feel that we need another operator like “??=“ similar to +=; $this->request->data['comments']['user_id’] ??= ‘value’. So if the var is null it’s set to ‘value’ and else

[PHP-DEV] Midori Kocak

2016-03-08 Thread Midori Kocak
nce I am repeating the same variable after the equal operator, this does not feels right. So I feel that we need another operator like “??=“ similar to +=; $this->request->data['comments']['user_id’] ??= ‘value’. So if the var is null it’s set to ‘value’ and else