3 ms·
> I just don't buy the suggestion that static typing magically solves a huge set of problems // compiles and runs, but does bad things function foo(x, y) {
by yakshaving_jgt 5y ago
> I just don't buy the suggestion that static typing magically solves a huge set of problems
// compiles and runs, but does bad things
function foo(x, y) {
someDangerousEffect();
return x + y;
}
-- does not compile; huge sets of problems magically solved
foo :: Int -> Int -> Int
foo x y = someDangerousEffect >> pure $ x + y
- vanusa 5y agoA problem but not a huge one in practice. And you're neglecting the part of my statement you conveniently truncated.
- yakshaving_jgt 5y ago> not a huge one in practice. Our experiences have been wildly different :)
- vanusa 5y agoYeah, life sometimes gets that way.