Why not separate Parameters and Generics?
The mojo docs have the following example:
I personally find it a little confusing and "hacky" to mix Parameters and Generics.
The docs even say
This is a little confusing, because the parameter value you're passing in this case is a typeWhat about adding an additional "block" to separate them like (only one idea): With that you have clear separation -
[...]
: for Generics / Types;
- (...)
: for function arguments (generics/types can be used here)
- <>
: for parameters; used inside the function
Any thoughts on this? 🤔 🤓0 Replies