-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Feature request; Primary constructors #18287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
PHP used to have C#-style constructors with So, we're very very unlikely to go full-circle. PHP uses Edit: Some additional context: https://wiki.php.net/rfc/remove_php4_constructors |
I mean, if enough people want it... share the love <3 |
This would definitely require an RFC, which is described here: https://wiki.php.net/rfc/howto Please send an initial e-mail to the mailing list to propose your idea so see how it is perceived. But to warn you, I highly doubt the feedback will be positive. 🙂 |
I'll try to write a compelling RFC, but I'll check in with the mailing list. Honestly, PHP has gotten so much better with time, and compared to many other communities, it's perfectly fine :D I've been using PHP sincle like '96, but never touched the engine parts :D |
No worries, if people are interested in your idea I'm sure you'll find volunteers for the implementation. Usually it's the idea itself that fails, unless the implementation is very complicated. |
Description
Love the syntax from C# over the __contruct we have today, It’s cleaner and more declarative. RFC time?
The text was updated successfully, but these errors were encountered: