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

2016-04-12 Thread Midori Koçak
what is sugar? On Monday, 11 April 2016, S.A.N wrote: > Maybe even more sugar? :) > > > class SugarCache > { > // Methode getValueFromDB() called, if its value null > public $value ??= $this->getValueFromDB(); > > // Methode getValueFromDB() called, if $value not transmitted or null > value

Re: [PHP-DEV] P++: FAQ

2019-08-09 Thread Midori Koçak
I do completely agree with this and would like to be part of it. I am really frustrated to see old developers shrug every time I talk about php. I am enthusiastic about our language, the language I started coding with and the language that evolved in years while I was learning it. 2 years ago, whi

Re: [PHP-DEV] P++: FAQ

2019-08-11 Thread Midori Koçak
+1 On Sun, 11 Aug 2019, 07:32 Andi Gutmans, wrote: > I must admit that the first time I read Zeev’s email I got anxious... but > it is frustrating that PHP has a WAY better runtime than Python and most > other dynamic languages yet is falling out of fashion. It’s strange given > how much better

Re: [PHP-DEV] [RFC] Prevent disruptions of conversations

2019-09-20 Thread Midori Koçak
Wow. A RFC that it's motivation is to prevent beginners from asking questions. That's horrible. I rather prefer a CoC. What about this? https://confcodeofconduct.com/ On Thu, 19 Sep 2019 at 19:19, Dan Ackroyd wrote: > Hi internals, > > Here is an RFC to "Prevent disruptions of conversations

[PHP-DEV] turkish documentation

2020-01-12 Thread Midori Koçak
Hello, I would like to translate some of the 7.4 documentation into turkish. It seems like wiki username and password does not work for documentation. I could not find the list of language mail lists as well. (it says doc-{LANG}@lists.php.net but where?) Any ideas? Thanks, Midori

Re: [PHP-DEV] Typed array properties V2

2020-01-25 Thread Midori Koçak
Given this orientation, can we also have this debated once more? https://wiki.php.net/rfc/callable-types Right now, I am using 7.4.2 in production and in my next book and I cannot explain how it feels good to have those types but along with the loosely typed freedom. That's the killer advantage o

[PHP-DEV] What about a magic __toArray() method?

2020-02-03 Thread Midori Koçak
As you know we have __toString method that runs whenever an object is typecasted to string or it is directly echoed. 'value' ]; } }); $casted = (array)$class; print_r($casted); /* prints: Array ( [key] => value ) mahmut */ What would you think? I think it would add value.

[PHP-DEV] Re: What about a magic __toArray() method?

2020-02-03 Thread Midori Koçak
Or we can deprecate __toString() method at all and detect cast events instead. Would it make more sense? Something like this __casted(). P.S: I saw the previous conversation but hence now we have types, it would make sense. Midori On Tue, 4 Feb 2020 at 08:15, Midori Koçak wrote: > As you k

[PHP-DEV] Re: What about a magic __toArray() method?

2020-02-03 Thread Midori Koçak
Oh there is even a rfc. https://wiki.php.net/rfc/to-array What is the status of this? On Tue, 4 Feb 2020 at 08:18, Midori Koçak wrote: > Or we can deprecate __toString() method at all and detect cast events > instead. Would it make more sense? Something like this __casted(). > > P.

Re: [PHP-DEV] What about a magic __toArray() method?

2020-02-04 Thread Midori Koçak
observable side-effects in this programming language: let's please > keep it as such. > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > > On Tue, Feb 4, 2020 at 8:15 AM Midori Koçak wrote: > >> As you know we have __toStr

[PHP-DEV] Here is a talk about the being a newbie in Internals

2020-02-09 Thread Midori Koçak
Hello, My talk about proposing Null Coalescing Assignment operator in PHPConf 2019 in Istanbul was published. If you would like to share what is a newbie experience to people who are interested inn internals you can share it. :) https://www.youtube.com/watch?v=AdKya1HLDZQ&list=PLc15X3-Essu7Qc9lBG

[PHP-DEV] Bad quality of turkish translation

2020-02-18 Thread Midori Koçak
hello, due to the very bad quality and majority of missing chapters and of the neglected turkish translation of php documentation, I would like to acquire the admin management of the doc...@lists.php.net Thanks, Midori Kocak

[PHP-DEV] Associated Arrays as function parameters

2020-03-14 Thread Midori Koçak
Dear Internals, I would like to as you a question. I know that it is possible to use an array to function parameters like: function(...array); But this method is not working when the array is associative. Would not be fine if an array like ['param1'=>'value', 'param2' => 'value'] would be used in

[PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Midori Koçak
only allowed method is bar in this state public function foo(1,2)(bar); // if allowed methods are empty or not defined // object is destructed public function bar(3,4){ }; } An object can be instance of a class, if it's not defined, is instance of an anonymous class. --

Re: [PHP-DEV] [7.2] Timetable

2017-05-21 Thread Midori Koçak
I suggest to implement ??= for primitive types. Please discuss. Thanks. > On 21 May 2017, at 02:08, Sara Golemon wrote: > > On Thu, Apr 20, 2017 at 11:43 AM, Sara Golemon wrote: >> My how time flies! Feature Freeze for PHP-7.2 is coming up in exactly >> THREE MONTHS on July 20th. Get your RF

Re: [PHP-DEV] [7.2] Timetable

2017-05-29 Thread Midori Koçak
In my opinion, we can implement it for primitives and arrays, but it's a bit more political problem than a technical one. On 29 May 2017 at 19:24, Sara Golemon wrote: > On Mon, May 29, 2017 at 6:41 AM, Björn Larsson > wrote: > > I wonder if the accompanying RFC will move forward? > > - https://

Re: [PHP-DEV] php.net website

2017-07-19 Thread Midori Koçak
I can help. > On 19 Jul 2017, at 19:07, Mathias Grimm wrote: > > Hi, > > I would like to know who is/are "in charge" of the website ( > https://github.com/php/web-php). > I think I would like to help improving it a bit. > > I can possibly understand the reasons why it is still like it is, code

[PHP-DEV] Happy World Elephant Day

2017-08-12 Thread Midori Koçak
Hi Internals, Happy world elephant day for all of internals community. Did you know there are 400.000 elephants left all around the world and every year 40.000 of them are dying for the ivory trade. Happy world elephant day again, Midori Kocak

Re: [PHP-DEV] null coalesce addition assignment operator ??+=

2018-01-20 Thread Midori Koçak
What is going on here? I think I missed the original post. On 19 January 2018 at 16:12, Sara Golemon wrote: > On Thu, Jan 18, 2018 at 7:13 PM, Christoph M. Becker > wrote: > > On 18.01.2018 at 23:58, Stanislav Malyshev wrote: > > > >>> I propose even more such operators: > >>> null coalesce add

Re: [PHP-DEV][RFC][DISCUSSION] Deprecate the backtick operator

2018-02-12 Thread Midori Koçak
Sounded reasonable to me. At least for security. On 11 February 2018 at 21:24, Stanislav Malyshev wrote: > Hi! > > > It's absolutely impossible to treat notices as errors in PHP, so I > > assume everybody thinks the same. If someone converts notices to > > ErrorExceptions or something, it's thei

Re: [PHP-DEV] Re: Mailing list moderation

2018-04-04 Thread Midori Koçak
+1 This kind of language shouldn't be allowed here. On 4 April 2018 at 20:42, Derick Rethans wrote: > Hi, > > "rhsoft" continues their aggressive behaviour on the bug tracker still > too. One recent illustration is > https://bugs.php.net/bug.php?id=76184&edit=1 > > Do we have any methods to ban

Re: [PHP-DEV] Deprecation ideas for PHP 8

2019-01-22 Thread Midori Koçak
Can we also add strange function names without any naming conventions to this list? Without undersore: strcspn, With underscore: str_repeat, chain of abrevs: strnatcasecmp. Similar namings do exist for array functions either. Cheers, Midori On Tue, 22 Jan 2019 at 22:22, Girgias wrote: > On Tue

Re: [PHP-DEV] Deprecation ideas for PHP 8

2019-02-01 Thread Midori Koçak
Totally agree with this. The new and old can exist both. We should be open to change. On Thu, 31 Jan 2019, 11:53 Benjamin Morel Please forgive my stubborness, too. I fail to see how WordPress supporting > PHP versions that have been EOL for YEARS can be of any help to the > community? These versi

Re: [PHP-DEV] New website for the PHP project

2019-02-05 Thread Midori Koçak
I can do some design, I designed the UI of CakePHP framework generators in 2015. You can see the whole process here: https://github.com/cakephp/cakephp/issues/6679 We should not rely on any css, js or html framework in my opinion. But it's up to you. For layout, CSS Grid and Flexbox is more th