News for hackers. Stuff that matters.
Re:Why static languages suffer from complexity by yakshaving_jgt on Wednesday January 19, 2022 @03:18PM (#29999416)
> 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
Re:Why static languages suffer from complexity by vanusa on Wednesday January 19, 2022 @03:28PM (#29999536)
A problem but not a huge one in practice.

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

Re:Why static languages suffer from complexity by yakshaving_jgt on Wednesday January 19, 2022 @03:37PM (#29999714)
> not a huge one in practice.

Our experiences have been wildly different :)

Re:Why static languages suffer from complexity by vanusa on Wednesday January 19, 2022 @03:46PM (#29999857)
Yeah, life sometimes gets that way.