Hacker News new | ask | show | jobs
by chollida1 3925 days ago
I work on a project that's a mix of F# and C++ and my code tends to break down very similarly to this.

The actual algorithmic lines are very similar in size and readability but when it comes to defining your data structures, F#/OCaml clearly wins.

The author of the website(Jon Harrop) is a very good writer and though his books are expensive I'd recommend them to anyone learning OCaml or F#.

Specifically F#/OCaml for scientists is awesome( it comes in variants for both languages) as is F# for Numerics.

1 comments

Yea, c/++ tends to have a memory oriented way of defining data structures. Sometimes this is great, but most of the time there is a lot of mental translation and work.