Am 16.03.2020 um 12:48 schrieb Jakob Givoni <ja...@givoni.dk>: > I'm opening up my new RFC for discussion: > > https://wiki.php.net/rfc/compact-object-property-assignment > - A pragmatic approach to object literals > > Let me know what you think!
Sorry to say but the syntax look very un-PHP-like. [] suggests an array but then is uses literals and = instead of 'strings'/$vars and => which looks wrong to my PHP eye. Apart from that it feels weird that you have an object where you want to initialise so many properties manually instead of through some sort of constructor. Is it more of a record than an object? I'm not sure if I that is a pattern I would want to encourage. My $.02, - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php