News for hackers. Stuff that matters.
Re:5% of 666 Python repos had comma typo bugs (inc V8, Tenso... by ErikCorry on Friday January 07, 2022 @01:33PM (#29842859)
In most languages an array with 3 elements has the same type as an array with 2 elements so the type system isn't going to warn you about the difference between

("foo" "bar", "baz")

and

("foo", "bar", "baz")

Re:5% of 666 Python repos had comma typo bugs (inc V8, Tenso... by skitter on Friday January 07, 2022 @02:20PM (#29843496)
They still tend to differentiate between 2- and 3 element tuples (but I agree that the implicit concatenation is problematic).
Re:5% of 666 Python repos had comma typo bugs (inc V8, Tenso... by atleta on Friday January 07, 2022 @02:20PM (#29843502)
Fair enough. I was only thinking about the str vs tuple case. So when you have 2 elements in the parenthesis.