Hacker News new | ask | show | jobs
by fuzztester 328 days ago
>In OCaml, a language highly suited for developing languages in,

What makes OCaml suited for that?

2 comments

algebraic datatypes (tagged unions + pattern matching); compiled, garbage collected (you dont really need memory management for a compiler), statically typed with inference
Yeah, the same reasons Scala has a built in parser combinator module in the standard library: Just easy to use with those features in the language
thanks.
ML, the language heritage from which OCaml derives, was explicitly designed with interpreters and compilers in mind.