I'm wondering what the reasoning is for allowing Types to be passed into a function without explicitly declaring .self if there is only one function parameter.
When ommitting .self:
- The function has 1 parameter: compiles
- The function has > 1 parameter: Expected member name or constructor call after type name
Take the following code:
To give some background, I am trying to create a function with the signature
That can be used like so
This get function works if you include .self after all of the Types, but that is not as clean and seems unnecessary unless I'm missing something.