[erlang-questions] Booleans in bit syntax
Pierre Fenoll
pierrefenoll@REDACTED
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
Cheers,
--
Pierre Fenoll
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.
>
> Kostis
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180122/2926ce01/attachment.htm>
More information about the erlang-questions
mailing list