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
a = [2, 1]
b = [1, 1]
a'b # outputs 3
a'[1, 1] # outputs 2
a'[1, 1] here is the first entry of a'.
What's the purpose of the syntax a'b instead of a' * b? Could the syntax a'b be removed to avoid this ambiguity?
The text was updated successfully, but these errors were encountered:
The thing is, as far as I know it's never possible to juxtapose an expression with [...], since that is by definition the syntax for indexing. So this doesn't bother me too much. We could disallow the special case of x'[ ] I guess, since that's probably rarely used, but still technically breaking.
Today I stumbled over this ambiguity:
a'[1, 1]
here is the first entry ofa'
.What's the purpose of the syntax
a'b
instead ofa' * b
? Could the syntaxa'b
be removed to avoid this ambiguity?The text was updated successfully, but these errors were encountered: