You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Types need to behave the same way, or all sanity is lost ;-)
I'm happy to take your word for that, but does this mean the shortest way to write this is to be:
Map[t1, t2]#Inner forSome { typet1 ; typet2; }
If Map[,]#Inner is a parse error and the alternative is the above, then at the very least we'd better suggest it in the error message. It is regrettable to impose such a steep syntax penalty: type projections are already unwieldy.
@odersky said:
I think if you mix wildcards with type projections you should get what you bargained for ;-) -- I never felt a need to write a type like this. These are enormously hairy types ready to devour you in an instant. The bulkier the notation the better it warns you to not go there, which IMO is a good thing.
Summary: I think Map[,]#Inner should be equivalent to x3 rather than an error.
The text was updated successfully, but these errors were encountered: