Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reading through this it becomes very apparent very quickly how concise, expressive, and elegant elixir is. The elixir versions seem to be on average 2/3 of the length of scheme, which is already fairly terse.

These exercises are great for anyone curious about the language. While I drank the elixir koolaid a while ago, it continues to be a really pleasant language to write stuff in.



Note that modern Scheme implementations have pattern matchers that eliminate much of the car/cdr'ing done in the Little Schemer, making it much shorter.


Yes, or just use match.scm which provides this functionality as well.

The point of Scheme is not the features it has, but how it allows you to build the features yourself. Try doing logic programming in Elixir, probably it won't work that well (just probably, I don't know Elixir).


Erlang is greatly influenced by Prolog. The first Erlang implementation was actually written in Prolog. Erlang and Elixir are just fine for logic programming.


There's a good Elixir implementation of MicroKanren: https://github.com/lyons/ExKanren




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: