Hyperpolyglot ML Dialects and Haskell: SML, OCaml, F#, Haskell
The article provides a detailed comparison of various programming languages including SML, OCaml, F#, and Haskell. It covers aspects such as grammar, invocation, and various programming constructs like variables, expressions, and functions. This reference sheet serves as a guide for understanding the similarities and differences among these languages.
- ▪The article includes a side-by-side reference sheet for grammar and invocation of SML, OCaml, F#, and Haskell.
- ▪It discusses various programming constructs such as variables, expressions, and functions across these languages.
- ▪The document serves as a comprehensive guide for programmers looking to understand multiple ML dialects.
Opening excerpt (first ~120 words) tap to expand
a side-by-side reference sheet grammar and invocation | variables and expressions | arithmetic and logic | strings | dates and time | arrays | lists | tuples | dictionaries | functions | execution control | exceptions | concurrency | file handles | files | directories | processes and environment | libraries and namespaces | user-defined types | objects | inheritance and polymorphism | net and web | unit tests | debugging and profiling | repl sml ocaml f# haskell version used SML NJ 110 4.0 F# 3.0 Mono 3.2 7.4 show version displayed at startup $ ocaml -version $ fsharpi --help $ ghc --version grammar and invocation sml ocaml f# haskell interpreter $ echo 'print_endline "hello"' > hello.ml $ ocaml hello.ml $ cat <<EOF > hello.fs module hello let main = printfn "hello" EOF $ fsharpi --quiet…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Hyperpolyglot.