[erlang-questions] Literal support for unary (1#XXXXXX...)
Sun Jun 2 23:36:35 CEST 2013
What would be usage for base 1 except "least surprise"?
On Sun, Jun 2, 2013 at 11:40 PM, Andrew Pennebaker <
> How base 1 works? Could you explain to me please? Is it number or digits
>> after dash?
> Typically, the value of a base 1 is the number of 1's. So three in base
> ten would be 1#111.
> As Masklinn points out, the digits used don't really matter because we're
> just evaluating the length. It could be X's, 3's, or chicken scratches,
> zeroes, capital I's, or a mix of 1#AlPhAbEt SoUP. Though I think for
> clarity, we should select a single permissible character and stick to it.
> Something like tally marks.
> Andrew Pennebaker
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions