-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
use the construct operator to replace new_init() in the stdlib #1860
base: master
Are you sure you want to change the base?
Conversation
This is fine. Do you want to leave it a draft and add more to it? |
Yes, I will add more tomorrow and see what these failing tests are about |
I keep being on the fence about this. I don't know if operator(construct) is the right way to do this. I have a weird gut feeling that it's just complicating the language. It's like... static methods are not a thing EXCEPT for this weird special rule. But then if that special rule is used all of the time, then doing it through "operator(construct)" is weird since it's used all of the time. It's a whole lot cleaner than opening a new namespace but it's also a very odd corner in the language. I need to think about this. |
currently just for the list as I don't have time today to do everything (hashmap, linkedlist, priorityqueue, dstring, etc)
please let me know if this is not wanted or if there are specific places where it is not wanted