Replies: 1 comment
-
There is a way to achieve this, using the vararg flag on the last parameter. I personally like the Python way of optional keyword (named) parameters with default values. |
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
-
I see that the topic of missing parameters has been discussed before, however it seems reasonable to me the possibility of having optional parameters on a function. More specifically I have a function that performs some additional process depending on a flag parameter. It would be more user friendly if the flag was optional with a default value if it isn't sent, however this is not possible because a missing parameter is taken as an error. A new setting on the functionParameter tag could be a nice way of adding this option.
Beta Was this translation helpful? Give feedback.
All reactions