| Not sure if it makes sense to be able to narrow the returned type when passing a parameter, given that the passed variable is immutable. I think allowing defaults would be a good thing. Without it, defaults must be explicitly stated within the function itself and perhaps in multiple places. That can be a tedious task since the parameter is immutable. It should be allowed to call return(), but only without arguments. We could allow returning a hash but I don't really see the point in that and it introduces new questions. What if the hash contains more variables? Is that allowed? If it contains fewer variables? Will the declared variable be used in that case? Etc. |