Hacker News new | past | comments | ask | show | jobs | submit login

> 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



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: