[erlang-questions] Booleans in bit syntax

Kostis Sagonas kostis@REDACTED
Mon Jan 22 01:36:14 CET 2018


On 01/21/2018 03:14 AM, Viktor Söderqvist wrote:
> 
> On 2018-01-20 15:58, Kostis Sagonas wrote:
>> Suddenly adding some syntactic sugar which transforms 1s to trues and 0s
>> to falses in binaries does not add any significant expressive power to
>> the language; just confusion.
> Isn't most of the binary syntax just syntactic sugar for conversions?

No, it's not just syntactic sugar.  The binary/bitstring data type is 
something that cannot be converted to some other Erlang term with the 
same (space-efficient) underlying representation.

Kostis



More information about the erlang-questions mailing list