@QuolonelQuestions The “How To” page should probably be rewritten to match the current reality better. I guess that most of the active RFC writers don't really look at that page any more and just work based on their experience and the RFC template that is automatically loaded.
Voting on the implementation is not really a thing, as Ilija already said.
@QuolonelQuestions Sorry, was off my computer on the weekend, but the answer would've been "didn't read the RFC yet" either way.
I don't want static classes because I think people need to get over functo-phobia, but I don't see any reason to forbid this.
Partially because namespace-private functions aren't a thing. Wish we had a better module system, but I don't even want to look inside that discussion thread >.<
@QuolonelQuestions Yes. Functions are fine. People are obsessed with autoloading and such. Preload the functions, it's not going to be a problem at all...
I think there's also something to be said for prefixing the call with a meaningful grouping identifier (the class name) which can be applicable in some situations
And something to be said for adding one import for a collection of functions you're likely to use together instead of one per function
But I didn't make any arguments for any of that in the RFC because it was never the point to push for a particular pattern over another
It's the sort of feature you can just ignore if it's of no value to you
@QuolonelQuestions "In particular, classes with a private constructor can still be instantiated via reflection and faux-deserialization hacks." Just use an enum with no cases. :D
FWIW, I think you did a good job with both writing and implementation. You mostly just picked a somewhat controversial first RFC. ^^
@QuolonelQuestions I will be honest, I didn't really follow the discussion on the ML as sooooo much traffic, but this just makes me go and try and wrap up the function autoloading RFC
@QuolonelQuestions People can change their mind, and realize that maybe something is not that good an idea after having dealt with it
The discussion about any idea of modules just occurred, checks notes, this past month
And I'm not sure how fruitful that conversation was, as it sprawled into so many threads with so many messages, but I know some people have been collating ideas
It's not because something is technically feasible really easily that it should be done. 3/4 of SPL is that and it is a horrible thing