3 ms·
> which is that they are so simple that the level of effort to port Clojure to other platforms (ClojureScript, Clojure CLR, etc) I don't see why that would be
by int_19h 8y ago
> which is that they are so simple that the level of effort to port Clojure to other platforms (ClojureScript, Clojure CLR, etc)
I don't see why that would be at all relevant to porting to other platforms? Most languages with richer syntax would parse to a backend-independent AST first, and so porting to a new platform would not require touching the parsing code at all - you'd be working on the same level as S-exprs, effectively.
- dustingetz 8y agothe s-expressions make the compiler simple. Clojure the language was designed to make portability simple. you need both
- int_19h 8y agoA well-designed grammar isn't difficult to parse into S-expressions. And they were writing compilers for languages with rich grammars (e.g. Algol-60) back in 1960s - often in hand-written assembly, on punch cards! I think a claim that it makes the implementation overly complex strains credulity.