Follow up on the discussion in #640 (comment)
The clue is to clarify how we want the method implementation generated by derive to behave in case optional parameters are present.
Different cases:
- Positional parameters expected but there is no parameters or all parameters are optional.
- Named parameters expected but there is no parameters or all parameters are optional.
- Raw parameters expected.
The last case is simple - we simply let the user implementation to decide what to do. In case of (1) & (2) we need to clarify what kind of params are going to be accepted (empty array, empty object or Params::None).
Follow up on the discussion in #640 (comment)
The clue is to clarify how we want the method implementation generated by
deriveto behave in case optional parameters are present.Different cases:
The last case is simple - we simply let the user implementation to decide what to do. In case of (1) & (2) we need to clarify what kind of
paramsare going to be accepted (empty array, empty object orParams::None).