Here’s the Deal
Slant is powered by a community that helps you make informed decisions. Tell us what you’re passionate about to get your personalized feed and help others.
When comparing Mochi vs Hy, the Slant community recommends Hy for most people. In the question“What are the best languages for the CPython VM? (besides Python)?” Hy is ranked 1st while Mochi is ranked 3rd. The most important reason people chose Hy is:
Hy compiles to Python's abstract syntax trees. Python can import Hy modules, and Hy can import Python modules.
Ranked in these QuestionsQuestion Ranking
Other Questions
No other questions
Pros
Pro Trailing closures
Like Ruby's blocks.
Pro Lisp-like macros
Pro Erlang-like Actors
Pro Pattern matching
Pro Tail recursion optimization
Only for the same function though.
Pro Persistent data structures
Basic collection types are immutable and share memory like in Clojure.
Pro Python interop
Hy compiles to Python's abstract syntax trees. Python can import Hy modules, and Hy can import Python modules.
Pro Easier to read
Distinguished between arrays (or vectors) and function calls by using [] and (), respectively.
Pro Copyfree and open source
Uses the MIT (expat) license.
Cons
No cons yet!
No cons yet!