Hacker News new | ask | show | jobs
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
1 comments

A problem but not a huge one in practice.

And you're neglecting the part of my statement you conveniently truncated.

> not a huge one in practice.

Our experiences have been wildly different :)

Yeah, life sometimes gets that way.