[erlang-questions] Booleans in bit syntax
Mon Jan 22 20:03:56 CET 2018
> I'd just like to point out that the logic is sometimes inverted.
Specifically when you're interfacing to certain types of hardware.
How about introducing both /bool0 and /bool1
On 22 January 2018 at 01:36, Kostis Sagonas <kostis@REDACTED> wrote:
> 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.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions