Re: Static (factory) methods in attributes and initializers

From: Date: Mon, 27 Sep 2021 16:25:58 +0000
Subject: Re: Static (factory) methods in attributes and initializers
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-116182@lists.php.net to get a copy of this message
I'm not exactly sure what you are proposing. However, it's always worth noting other languages which have something in the feature space, and Dart has both named constructors and factory constructors. You should start with researching what they do, and what other languages may have the same as _language features_, and not as patterns e.g. Java has a factory pattern, but it's not part of the language (at least not that I last checked, I don't follow Java).

« previous php.internals (#116182) next »