タグ

ブックマーク / zohaib.me (1)

  • Binary pattern matching in Elixir with PNG parsing example

    Dealing with binary data has always been a pickle in OOP language. Pattern matching is very fundamental to Elixir making the functions much more descriptive. I was very pleased to see that the pattern matching was not just limited to tuple, list etc. but extended to binary data as well. This makes it very easy to write or parse binary protocol in Elixir. In this post we'll take a look at how to do

    Binary pattern matching in Elixir with PNG parsing example
    masakiplus
    masakiplus 2015/08/02
    Dealing with binary data has always been a pickle in OOP language. Pattern matching is very fundamental to Elixir making the functions much more descriptive. I was very pleased to see that the pattern matching was not just limited to tuple, list etc. but extended to binary data as well.
  • 1