On 26/01/2017 20:23, Rasmus Schultz wrote:
Either way, guys, here's a preliminary RFC:
https://wiki.php.net/rfc/use-static-function
Just to pick up on one thing you mention on there, declaring static
classes. This has been discussed before, and an RFC went to a vote a
couple of years ago and
On 26/01/2017 21:37, Walter Parker wrote:
Why are functions useless when using Composer? Is it because functions
can't be autoloaded?
Is this about getting functions to load without having to stick them in
classes that can be autoloaded?
Yes, and yes. The subject line of this thread is an allus
On Thu, Jan 26, 2017 at 12:23 PM, Rasmus Schultz wrote:
> > if you choose to use static methods instead of functions
>
> It's not a choice - functions are practically useless in a Composer
> context, and most everything PHP is now Composer packages.
>
> Why are functions useless when using Compos
> if you choose to use static methods instead of functions
It's not a choice - functions are practically useless in a Composer
context, and most everything PHP is now Composer packages.
> why do you need this special syntax for calling them then?
Yeah, but the same logic applies to namespaces an
>
> > The problem with stop-gap measures is they become entrenched, and the
> proper solution doesn't get implemented
>
> This would be my general point of view - unfortunately, functions are
> essentially useless at present, in a world with Composer, unless you're
> willing to preload all function
> The problem with stop-gap measures is they become entrenched, and the
proper solution doesn't get implemented
This would be my general point of view - unfortunately, functions are
essentially useless at present, in a world with Composer, unless you're
willing to preload all functions from all pa
Hi,
Rasmus Schultz wrote:
Since the autoloading functions proposal is stalled, how about allowing for
import of static functions instead?
The problem with stop-gap measures is they become entrenched, and the
proper solution doesn't get implemented. But we may be at the risk of
the latter any