Re: [RFC] Structured Object Notation

From: Date: Sun, 31 Jul 2016 13:59:54 +0000
Subject: Re: [RFC] Structured Object Notation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-94763@lists.php.net to get a copy of this message
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 instantiate it in unstructured code.
Hi Midori, I'm not really sure what problem you're trying to solve here, or what exactly you're proposing. The RFC would benefit greatly from a succinct summary of the actual feature, as well as the examples. Are you looking for a way to set pre-requisites, like "you can only call bar() if you've already called foo()"? But then why are these on each instance, not part of the class? Or are you trying to declare the order of all operations in your program as some kind of directed graph? How would that work with multiple objects interacting, or with structures like conditionals and loops? There may be an interesting concept buried here somewhere, but I would echo Richard's suggestion of finding something similar in another language, or perhaps some related computer science theory, to give more depth to the idea. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#94763) next »