Closed Munzey closed 3 years ago
I'm not a fan of allowing people to shoot themselves in the foot with anonymous types. If they want this behaviour it's fairly trivial for them to write their own extension function with the wildcard types themselves.
i.e. should we change or offer the following as part of the api:
This would allow 2 things: 1) no more specifying the types when declaring a binding block:
2)
doSomething
anddoSomethingElse
can have error types that dont extend from the same type. The downside of this is that now the ide will see the type ofresult
in the above example asResult<Int, *>
But is that so bad?If we wanted to add this, would it make more sense to replace the current binding with this? or offer a second function. What would they be named?
bindingAny
?bindingExplicit
?