Overrideable (normal) Functions #2862
Closed
Denneisk
started this conversation in
Suggestions
Replies: 1 comment
-
Need a really good reason as to why this should happen when we have lambdas now. I understand overriding in terms of OOP, but this is just sloppy and would lead to functions erroring at runtime from not existing all over again.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Allow compile-time functions to be overridden with a special attribute/keyword.
This is mainly for libraries where certain functions are expected to or can be overridden by the user.
The syntax could be like so:
I am unsure whether the keyword should be applied in the library or in the implementing file.
Beta Was this translation helpful? Give feedback.
All reactions