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
SR-895 Cannot do a qualified import of an operator
TF-1065 Consider disallowing qualified operators in @transpose
Issue Description:
I propose to borrow Haskell's syntax for operator disambiguation when the same operator is declared in two different modules and the compiler cannot figure out which one to use contextually. Given the made-up operator %! occurring in modules Foo and Bar, we could say
Perhaps in Swift the parentheses are not necessary.
The general workaround for this is that there should be an "ordinary" function declared for every operator, so that it can be used in places where the compiler gets confused. This is the practice I follow, but being able to disambiguate operators in this way would be very useful.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: c6afa3d80664e636a7dd953616f58088
relates to:
@transpose
Issue Description:
I propose to borrow Haskell's syntax for operator disambiguation when the same operator is declared in two different modules and the compiler cannot figure out which one to use contextually. Given the made-up operator %! occurring in modules Foo and Bar, we could say
Perhaps in Swift the parentheses are not necessary.
The general workaround for this is that there should be an "ordinary" function declared for every operator, so that it can be used in places where the compiler gets confused. This is the practice I follow, but being able to disambiguate operators in this way would be very useful.
The text was updated successfully, but these errors were encountered: