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]


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to