Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ErikCorry
4y ago
0 comments
Save
Share
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")
0 comments
2 comments · 2 top-level
top
newest
oldest
skitter
4y ago
They still tend to differentiate between 2- and 3 element tuples (but I agree that the implicit concatenation is problematic).
atleta
4y ago
Fair enough. I was only thinking about the str vs tuple case. So when you have 2 elements in the parenthesis.
j
/
k
navigate · click thread line to collapse