Hacker News new | ask | show | jobs
by aidenn0 26 days ago
Aside from the fact that slapping an s-expression syntax on top of a language typically leaves you with a fairly crappy Lisp, that would also lack the excellent Common Lisp interop that Coalton has.
1 comments

OCaml is a better candidate than most. It already has a macro system (PPX), and the core language has a lot in common with Scheme.
The PPX macro system is far from perfect, that's the whole point of this idea: with the native REPL + an s-expression syntax, you have lisp-like macros for free.
S-expressions are more than mere syntax. Lists in OCaml can only have a single element type, so you would need something different for s-expressions.