Parenscript vs KAJS
When comparing Parenscript vs KAJS, the Slant community recommends Parenscript for most people. In the question“What are the best languages that compile to JavaScript? ” Parenscript is ranked 35th while KAJS is ranked 51st. The most important reason people chose Parenscript is:
Lisps are easy languages to learn (once you get past the parens) and Common Lisp is a very practical dialect.
Ranked in these QuestionsQuestion Ranking
Pros
Pro It is Common Lisp
Lisps are easy languages to learn (once you get past the parens) and Common Lisp is a very practical dialect.
Pro Run almost identically on both the browser and server
Parenscript code can run almost identically on both the browser (as JavaScript) and server (as Common Lisp).
Pro Has Ruby-like @ feature
So for example instead if using this.foo
, you can call that variable by using @foo
.
Pro Implicit bracket and variables
No need for var keyword or brackets, just call a function like foo "bar".
Cons
Con The syntax may be hard to learn
Being an implementation of Lisp, Parenscript's syntax may seem cryptic and hard to understand for people not used to it. While Lisp has very little syntax compared to other languages and it's generally considered pretty terse, there's still an initial overhead in learning the language.