I think that dev called that "enum case with parameters" or something similar. Don't really remember at this point.
> _why on earth_ would you ever want to be able to override that func's params and feed it something else?
No, I meant overwriting function arguments within the function itself to avoid rewriting the code below that point. I do sometimes do that in Java and I find it a sensible thing to do. For example
public String doSomethingWithTwoStrings(String a, String b){
if(some condition){
a=something else;
}
// do something with (possibly overwritten above) a and b
return result;
}
I'm used to treating function parameters as pre-populated local variables. Swift compiler gets in the way and doesn't let me do that because immutability. Comparing with Java, it's as if everything is `final` by default.