Binaries in records syntax error

James Aimonetti <>
Sat Jul 31 00:59:40 CEST 2010


If setting raw binaries into records, a space is important between the
binding and the start of the binary.

#foo{bar=<<"something">>} causes a "syntax error before: '=<' " during
compilation.

#foo{bar= <<"something">>} is fine.

Caught me by surprise. FYI

James


More information about the erlang-questions mailing list