I returned to php development from Moose , and I really miss the CLOS object model for php. Is there some kind of synthetic sugar that would allow me to write less code in php when working with objects?
Just emphasize this requirement a little more. I do not want to write one thing in several places. I can live with part of the generated code automatically, but in the code that I need to see in order to develop, I donβt want to see redundant information that is just messy (think: LISP macro if you really need an additional analogy). Therefore, this part can also be called DSL, if that makes sense.
I would like to have at least roles (mixins) as well as introspection without reinvention. Code generators and autoloaders can be one way to solve at least part of this problem.
ps There is Joose for JavaScript, so a similar API would be very useful.
source share