|
|
|
|
|
by yakshaving_jgt
1616 days 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
|
|
And you're neglecting the part of my statement you conveniently truncated.