1. 3

    Also working on a pet project of mine, an Interpreter in Elixir: https://github.com/fabrik42/writing_an_interpreter_in_elixir

    I’m still learning the language and hope some people will see it and teach me a trick or two :)

    1. 3

      That’s really neat!

      I would’ve uses regexes in the lexee instead of range comparisons for characters, and would’ve avoided if statements, but that is just my own taste. Cool project!

      1. 1

        Interesting about if statements, do you use cond by default then? I certainly don’t stick to one conditional style in the Elixir I write.

        1. 1

          This might be a little weird, but I tend to just stick with case unless I have a compelling reason to do otherwise.

          1. 1

            I actually used the credo analyzer on the source code. I did not change everything according to its suggestions, but one of them was that you should actually use if over cond if there are not at least two none-default branches in the cond statement.

        2. 1

          Thank you! Very good points! :)