Erlang and binary

Jul 30, 2007 20:08


Messing around some with erlang, I've really been impressed with the bit syntax which makes dealing with binary data actually fun. In erlang, binaries can be expressed using the following syntax:

1> A = <<205>>.
<<"\315">>

So A is no bound to the binary value 205 - which is by default 1-byte in length. With the following syntax, we can ( Read more... )

erlang, programming, fp

Leave a comment

Comments 1

cola_fan July 31 2007, 23:38:32 UTC
Nicely done.

Reply


Leave a comment

Up