Open pouwelsjochem opened 3 years ago
The ?
at the end of the type might be problematic in case of complex type (foo|bar?
isn't quite clear... let alone if there's a description afterwards).
Other propositions:
@param? foo string
@param foo? string
Environment
What happens?
As of now, function overloads always need to be added by using the
@overload
annotation. But this annotation requires you to copy&paste most of your signature.What were you expecting to happen?
Most of my overloads are actually optional parameters, it would be nice if there was a way to indicate optional parameters in a different way so overloads are added automatically.
See below for several examples how I think the syntax could look like:
current situation
void type parameters
suffixed or prefixed parameters
@optionalparam annotation