Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Pierre Joye
On Oct 4, 2014 4:01 AM, Andrea Faulds a...@ajf.me wrote: On 3 Oct 2014, at 17:21, Thomas Gossmann m...@gossimaniac.net wrote: I was wondering if it is possible to deprecate/remove the function keyword from class methods in php7 or at least make it optional when one of the visibility keywords

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Thomas Gossmann
Thank you for your input and comments, which let me think through some of them and my initial thoughts. Here is what I come up with. Perfection is reached when there is nothing left to remove. So in a perfect world, a class could look like this: class Foo { bar() {} baz() {} } When

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Johannes Schlüter
On Fri, 2014-10-03 at 18:21 +0200, Thomas Gossmann wrote: I guess this was a discussion earlier, though I wasn't able to find anything about it. Would love to hear, what pdt-internals (re-)think about that topic. Go to wiki.php.net/rfc look at the titles containing function and you will see

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Thomas Gossmann
Thanks Johannes, I slipped over it but would have never found the discussion to it. I run over it and the summary is: Many people like it and those that don't have brought arguments, that are present here again. The discussion is almost 4 years old by now, and people are complaining over

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Rowan Collins
On 04/10/2014 17:10, Thomas Gossmann wrote: Hence, for php-beginners, this example of a simple class is a good start, which can also be used educating them in OOP by adding the more advanced parts - instead of letting them write function when this actually is a method (In my eyes, education

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Rowan Collins
On 03/10/2014 18:57, Ingwie Phoenix wrote: C++ does not use a function keyword by itself, and even lesser visibility keywords as PHP does. There have been a couple of comparisons to other languages brought up, but I find them unconvincing. Most languages have some keyword for introducing

Re: [PHP-DEV] Re: Re: OpenSSL bug in 5.4.33 and 5.5.17

2014-10-04 Thread jocelyn fournier
Hi, It would perhaps be great to communicate on this nasty bug on the PHP website ? For example code based on amqplib + ssl (https://github.com/videlalvaro/php-amqplib) is not working anymore as well, and it could be a headache to figure out why it's not working. I assume a lot more libs

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Kris Craig
On Oct 4, 2014 11:24 AM, Thomas Gossmann m...@gossimaniac.net wrote: Thanks Johannes, I slipped over it but would have never found the discussion to it. I run over it and the summary is: Many people like it and those that don't have brought arguments, that are present here again. The

Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods?

2014-10-04 Thread Ingwie Phoenix
Am 05.10.2014 um 00:10 schrieb Kris Craig kris.cr...@gmail.com: On Oct 4, 2014 11:24 AM, Thomas Gossmann m...@gossimaniac.net wrote: Thanks Johannes, I slipped over it but would have never found the discussion to it. I run over it and the summary is: Many people like it and those that