Hello Internals,

I'm working on an RFC with the subtitle
> A pragmatic approach to the "impossible" object literals and named parameters

I'll be proposing a syntax to assign values to multiple properties on
the same object in a single block - i.e. inline.
It's motivated by many of the same headaches that lead to various
proposals for object literals, object initializers and named
parameters, none of which were successful so far.

I call it COPA - Compact Object Property Assignment, and it is exactly
that and nothing else.

Though not limited to such, it will make working with things like DTOs
and argument bags significantly nicer.

In contrast to previous RFCs, I believe the strength of this one is
simplicity on all levels.

Any advice before I move forward with publishing the actual RFC?

Best regards,
Jakob Givoni

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

Reply via email to