by cribbles on 4/30/22, 9:28 PM with 86 comments
by bmc7505 on 5/3/22, 12:33 PM
by pmoriarty on 5/3/22, 9:34 AM
The other thing I didn't like (which was something shared with other statically-typed languages) was feeling like I had to wrestle forever with the compiler to get my program to run. It just always felt so much easier to write programs in dynamically typed languages. Sure, my programs might have bugs in them, but I could iron them out over time, and my programs change so much anyway that pieces of buggy-but-working code in those dynamically typed languages might be replaced wholesale anyway before I even ran in to the bugs.. so the pace of prototyping in dynamically typed languages is much faster, in my experience.
by dgan on 5/3/22, 9:54 AM
OCaml's syntax is pretty annoying but type inference is actually amazing.. I changed my mind over it, as previously I thought explicit type annotations are simpler. Turns out, it would be humanly impossible to explicitly annotate every piece of OCaml, just let the compiler do it for you
by pharmakom on 5/3/22, 9:17 AM
by baby on 5/3/22, 11:11 AM
by cassepipe on 5/3/22, 11:33 AM
The article says "::" is a Data Constructor. I can make sense of type 'a = Left of 'a | Right of 'a where Right and Left are the Data constructors but I don't see the link with the part I don't understand.
by shikoba on 5/3/22, 12:36 PM
> Don't try to understand the error message except if you have no other choice.