3 ms·
True. Languages with static type checking probably have this easier because you'll have some warnings about differences in scopes or unused variables.
by eatonphil 5y ago
True. Languages with static type checking probably have this easier because you'll have some warnings about differences in scopes or unused variables.
- marcosdumay 5y agoIt's not that. The whitespace works differently between those languages. The Python syntax has limitations that aren't on the Haskell one. But also, Haskell tends to place the kind of things the GP is talking about on the beginning of your expression (because of the "reverse" order on function composition), while Python tends to place them at the end of a block.
- elcritch 5y agoSimilar benefit in Nim where types help catch stray indent issues. Plus proper scoping of automatic variables in ‘for’ loops helps too.