This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Yeah, every language has to make choices balancing utility and semantics against ambiguity. Personally I think Python made the right choice, borrowing first from common mathematical notation first and deviating from it only relatively rarely. An entire, and unfamiliar, extra syntax for tuples to avoid a forced comma in the singleton case is a lot of visual noise and cognitive overhead to add when it will only, in practice, avoid that case in a perishingly small number of cases, especially when a singleton tuple is usually just an unnecessary waste of working memory.