News for hackers. Stuff that matters.
Re:Deep learning experiments in OCaml by deepGem on Friday September 21, 2018 @10:32AM (#18039943)
Yep agreed. Though you can communicate design intentions in comments, no ? There is another argument that programmers might not follow the comments, so strict enforcement by types helps - I don't believe in such a philosophy though. Most programmers will do the right thing and mistakes are not intentional.
Re:Deep learning experiments in OCaml by elbear on Friday September 21, 2018 @03:47PM (#18042156)
It's not that they don't follow the comments, it's the fact that comments aren't executable, so they rot. People forget to update them. That can't happen with type definitions, because your code stops compiling.

Sure, comments serve their purpose, but that purpose only slightly overlaps with that of static types.