News for hackers. Stuff that matters.
Re:OCaml for the Masses (2011) by weberc2 on Monday November 26, 2018 @06:20PM (#18537748)
Last time I tried using it, it was unclear what build system to use and I had a hard time finding the "happy path" (what test library to use, how to set up my project file to include a test target, etc). It also seems to have this weird FP/OOP dichotomy where some things are methods on a class and others aren't and that affects how you call things and so on. I didn't get far enough to really be able to articulate my problem, but it seems quite complex (albeit much of the complexity probably exists to support interop with other .Net things). I think most of this could be addressed with documentation "How to do X in F#" (I'm sure someone has a writeup somewhere, but I couldn't find any such document around the time I tried it).
Re:OCaml for the Masses (2011) by McWobbleston on Tuesday November 27, 2018 @12:50AM (#18539793)
F# for fun and profit is an excellent resource
Re:OCaml for the Masses (2011) by weberc2 on Tuesday November 27, 2018 @10:40AM (#18543148)
Yeah, I remember trolling through those and I found them really useful and accessible; unfortunately I don't remember the details about why they didn't help me get over the hump (I'm sure if I stuck with it long enough I could have; I just have limited free time).
Re:OCaml for the Masses (2011) by vram22 on Wednesday November 28, 2018 @01:05PM (#18553936)
Seconded. It helped me clear up some FP concepts.
Re:OCaml for the Masses (2011) by rs86 on Monday November 26, 2018 @09:01PM (#18538683)
FP and OOP are orthogonal... You can have purely functional objects
Re:OCaml for the Masses (2011) by phyrex on Tuesday November 27, 2018 @03:18PM (#18546271)
I fail to see how this would work. An object is a combination of state and methods acting on the state, and purely functional meaning no state.