template arg opt-in #2080
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From Discord chat:
Basically when we are calling a template, we can pass more arguments than what template accepts, extra arguments will be ignored, no error will be raised. If any of those arguments are to be used, the template must define them. Further our module interface checker, which verifies if given template is compatible with the interface template, will ensure that the arguments to a provided template match with and are a subset of the original template.
Beta Was this translation helpful? Give feedback.
All reactions