When comparing Haste vs ElixirScript, the Slant community recommends Haste for most people. In the question“What are the best languages that compile to JavaScript? ” Haste is ranked 19th while ElixirScript is ranked 26th. The most important reason people chose Haste is:
Haste was designed to allow both the client and server to be written as parts of the same, type-safe application. This is in stark contrast to most other options, where the client and server are considered two separate entities, resulting in extra manual validation code and more chances for type errors.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Client and Server as the same application
Haste was designed to allow both the client and server to be written as parts of the same, type-safe application. This is in stark contrast to most other options, where the client and server are considered two separate entities, resulting in extra manual validation code and more chances for type errors.
Pro Almost full power of Haskell
Haste supports the Haskell 2010 standard except for Template Haskell as well as most GHC extensions.
Pro Automatic, type safe program slicing
Haste lets you write client and server as a single program, automatically generating code for the server as well as the client, giving you full type safety even across the Internet.
Pro Generates small, reasonably performant code
Pro Clear syntax
Uncluttered, yet unambiguous syntax
Pro Excellent community
The Elixir community has proved to be welcoming and very supportive.
Pro Great for concurrency
Leverages the existing Erlang BEAM VM
Pro More familiar syntax
All of the benefits of Erlang; without as steep a learning curve of prolog based syntax. Elixir is heavily inspired by Ruby's syntax which many people love.
Pro Great documentation
Elixir's documentation is very good. It covers everything and always helps solving any problem you may have. It's also always available from the terminal.
Cons
Con Lacks some minor Haskell functionality
Lacks support for Template Haskell.