Fwd: [PHP-DEV] Idea for RFC: Compact Object Property Assignment

From: Date: Fri, 06 Mar 2020 21:50:54 +0000
Subject: Fwd: [PHP-DEV] Idea for RFC: Compact Object Property Assignment
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-108887@lists.php.net to get a copy of this message
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

« previous php.internals (#108887) next »