Hacker News new | ask | show | jobs
by Alacart 1039 days ago
A possible counter point to the dislike of comprehension, depending on why you don't like them:

https://www.mitchellhanberg.com/the-comprehensive-guide-to-e...

I discovered a lot of things in this post that made me see them as much more valuable than I'd originally thought.

1 comments

Bitstring parsing examples using Elixir comprehensions always seem so much nicer than anything I’ve seen anywhere else. I need to play with Nerves to have an excuse to learn them properly!
I recently wrote a binary protocol in C and Elixir. The Elixir implementation was so much simpler and 1/3 of the code, and has better error messages
That’s not open source by any chance is it? I’d be really curious to see the comparison!
Its for our proprietary product, but maybe I’ll consider writing a blog post on how they compare