3 ms·
Following the aside ... requiring parentheses around tuples is generally best for readability. I can only think of two cases that are more readable without them
by o11c 3y ago
Following the aside ... requiring parentheses around tuples is generally best for readability. I can only think of two cases that are more readable without them:
(x, y) = (y, x)
some_array[(x, y)]
Languages generally already special-case both the LHS of assignments and the inside of indexing brackets, and special-casing the RHS of assignments seems like a reasonable extension.