[erlang-questions] Literal support for unary (1#XXXXXX...)

Max Bourinov bourinov@REDACTED
Sun Jun 2 23:36:35 CEST 2013


Andrew,

What would be usage for base 1 except "least surprise"?

Best regards,
Max



On Sun, Jun 2, 2013 at 11:40 PM, Andrew Pennebaker <
andrew.pennebaker@REDACTED> wrote:

>
> 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.
>
> http://en.wikipedia.org/wiki/Base_1
>
> 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.
>
> --
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
>
> _______________________________________________
> 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/20130603/dfbdf5ee/attachment.htm>


More information about the erlang-questions mailing list