A lot of people are criticising dynamic typing for this.
It doesn't seem to have anything to do with typing discipline.
words = (
'yes',
'correct',
'affirmative'
'agreed',
)
Would be a tuple (immutable list) of strings, while
words = (
'yes',
'correct',
'affirmative',
'agreed',
)
would also be a tuple of strings.
If haskell had for some reason decided to have the same syntax sugar, it also would have caused an issue.
It doesn't seem to have anything to do with typing discipline.
Would be a tuple (immutable list) of strings, while would also be a tuple of strings.If haskell had for some reason decided to have the same syntax sugar, it also would have caused an issue.