[Haskell-cafe] Binary constants in Haskell

John Meacham john at repetae.net
Thu Oct 25 18:27:30 EDT 2007

On Thu, Oct 25, 2007 at 04:06:56PM +0200, Dusan Kolar wrote:
> Hello all,
>  // PLS, no flame
>  I think the question was not whether there's a way, how to handle the 
> problem of encryption of a binary number to anything suitable and, more 
> or less, readable by a human and transforming it to a binary form, but 
> whether there's such a literal or not and whether it is bad idea to have 
> something like 0b10111011.

I have often wanted this feature too. I think the only complaint someone
might have is that 'b' is also a valid hexadecimal character, which
can be confusing if the number is out of context. 


John Meacham - ⑆repetae.net⑆john⑈

More information about the Haskell-Cafe mailing list