OK, this is stupid. I wrote this to get started in Elixir development. This is the very first piece of Elixir code I've ever written and I'm 100% sure it sucks :).
It's a calculator. It calculates things.
For example, $ ./calculator add 4 1
will add 4 to 1 and return 5. Surprise, surprise.
- Install Elixir,
- Clone the repo,
$ mix compile && mix escriptize
$ ./calculator add 4 1
- DISCO! (or whatever)
Yeah, I know. I'm flattening everything down to floats, so Elixir (or probably Erlang) displays output in E notation. Unfortunately I didn't find a sane workaround when I was writing this. Bummer.
I am, but that's a different story ;). As far as the code goes - look, this is my first take at Elixir, so just let it go. I promise I'll write better code next time, OK?
I know and I'm not gonna write any. It's late and I feel like some CS:Source. Wanna join, maybe?
The usual for me - MIT License.
I'm Tomek Wójcik. I code for a living. The rest is irrelevant.