[RFC] New in initializers

From: Date: Wed, 03 Mar 2021 15:03:53 +0000
Subject: [RFC] New in initializers
Groups: php.internals 
Request: Send a blank email to internals+get-113347@lists.php.net to get a copy of this message
Hi internals,

I would like to propose allowing the use of "new" inside various
initializer expressions: https://wiki.php.net/rfc/new_in_initializers

In particular, this allows specifying object default values for properties
and parameters, and allows the use of objects as attribute arguments.

The RFC is narrow in scope in that it only adds support for "new". An
extension to other call kinds should be straightforward though.

Regards,
Nikita


Thread (38 messages)

« previous php.internals (#113347) next »