Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Stanislav Malyshev
Hi! > use \Psr\Http\Message\ServerRequestInterface as Request; > use \Psr\Http\Message\ResponseInterface as Response; > > require '../vendor/autoload.php'; > > $app = new \Slim\App; > $app->get('/hello/{name}', function (Request $request, Response $response) { > $name = $request->getAttribu

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Rowan Collins
On 31/07/2016 15:37, Dan Ackroyd wrote: All PHP programs start in procedural code, and then require some bootstrapping before we can enter the lovely world of OO code. I think it goes deeper than that: the procedural code is not just outside the objects, it's inside them too. The body of every

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Fleshgrinder
On 7/31/2016 4:30 PM, Dan Ackroyd wrote: > Hi FG, > > On 31 July 2016 at 14:15, Fleshgrinder wrote: > > Unless you're deliberately trying to be offensive, please consider > phrasing your words to not appear to be quite so rude. > > For example you could have said: > > "Sorry, I've read the RFC

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Dan Ackroyd
Hi Midori, On 31 July 2016 at 10:00, Midori Koçak wrote: > even though we have classes included in our program, the > only way to create an object from a class, is to instantiate it in > unstructured code. That is the true nature of reality. All PHP programs start in procedural code, and then r

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Dan Ackroyd
Hi FG, On 31 July 2016 at 14:15, Fleshgrinder wrote: Unless you're deliberately trying to be offensive, please consider phrasing your words to not appear to be quite so rude. For example you could have said: "Sorry, I've read the RFC mutltiple times and can't understand what the purpose of it

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Rowan Collins
On 31/07/2016 10:00, Midori Koçak wrote: https://wiki.php.net/rfc/structured_object_notation Object Oriented Programming is a key feature to write structured programs in PHP. However, even though we have classes included in our program, the only way to create an object from a class, is to instan

Re: [PHP-DEV] [RFC] Structured Object Notation

2016-07-31 Thread Fleshgrinder
On 7/31/2016 11:00 AM, Midori Koçak wrote: > https://wiki.php.net/rfc/structured_object_notation > -1 The RFC is badly written and hard to understand right away. I would usually offer my help at this point but I think that the proposed feature is useless. You should also consider investing some