Open cor3ntin opened 2 years ago
I think we can kind of do default parameters by having final
functions that have fewer parameters that forward to customisable functions, providing defaults for the missing parameters.
Maybe not so urgent to add this?
final
need to support default parameters to be able to model thefinal
functions form a normal overload set that can be a bunch ofoperator()
in the cpofor override/default, we can consider having the defaults on prototypes declaration, such that otherwise compatible override/default implementations are ill-formed if:
When an override or default is matched against a prototype with default(s) parameter(s), the initializers of these parameters is attached to the declaration so they don't have to be looked for again