Remix.run Logo
fuzztester 4 days ago

>In OCaml, a language highly suited for developing languages in,

What makes OCaml suited for that?

mjburgess 4 days ago | parent | next [-]

algebraic datatypes (tagged unions + pattern matching); compiled, garbage collected (you dont really need memory management for a compiler), statically typed with inference

hibikir 4 days ago | parent | next [-]

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

fuzztester 3 days ago | parent | prev [-]

thanks.

greggyb 4 days ago | parent | prev [-]

ML, the language heritage from which OCaml derives, was explicitly designed with interpreters and compilers in mind.