3 ms·
A lot of people are criticising dynamic typing for this. It doesn't seem to have anything to do with typing discipline. words = ( 'yes', '
by LAC-Tech 5y ago
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.
- motles 5y agoYou got me for a second there.