top | item 37117452

(no title)

Alacart | 2 years 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.

discuss

order

mcintyre1994|2 years ago

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!

davydog187|2 years ago

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