digit groups

Bulat Ziganshin bulat.ziganshin at gmail.com
Wed Oct 25 11:14:13 EDT 2006


Hello Jon,

Wednesday, October 25, 2006, 6:37:33 PM, you wrote:

> 0xffff_3729 makes perfect sense as hex and the "_" does a
> nice job of separating the digits into readable groups.

> 0xffff~~3729 looks similar, but doesn't mean the same thing
> at all.

> 0xffff~~0x3729 is ugly and probably less readable than the
> unbroken form.

and it's again not the same - ~~ operator multiplies by 1000, not
65536 :)))

> No. A small alteration to the lexical syntax for the sake of
> improved readability seems perfectly justifiable as long as
> it doesn't make the lexical syntax /significantly/ more
> complicated or harder to learn.

believe it or not, but i once implemented this as ghc patch and send
to SPJ, who suggested me to postpone such micro-changes until new
Haskell standard will be discussed :)

afair, it was about 3 lines patch :)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-prime mailing list