Re: digit groups

2006-10-25 Thread Iavor Diatchki
Hello, while people are discussing different notations for literals, I thought I should mention that in my work I have found it useful to write literals ending in K (kilo), M (mega) or G (giga) for large numbers. For example, I can write 4K for (4 * 2^10), or 8M for (8 * 2^20) or 2G for (2 * 2^30

Re: digit groups

2006-10-25 Thread John Meacham
just for fun, I have implemented this for jhc. you can now write numbers like 10_000_000 if you choose. I have not decided whether I like the feature or not. but what the heck. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Haskell-prime maili

Re: digit groups

2006-10-25 Thread Aaron Denney
On 2006-10-25, Jon Fairbairn <[EMAIL PROTECTED]> wrote: > 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. Sure. But some of us don

Re: digit groups

2006-10-25 Thread Jón Fairbairn
Just to fill in a detail: I <[EMAIL PROTECTED]> wrote: > I have some dim recollection that there is an ISO [...] > standard that says that rather than commas or points, we > should use narrow spaces between groups of digits in > numbers. I can't find it now, though -- can anyone? After a bit mor

Re[2]: digit groups

2006-10-25 Thread Bulat Ziganshin
Hello Jon, Wednesday, October 25, 2006, 6:37:33 PM, you wrote: > 0x_3729 makes perfect sense as hex and the "_" does a > nice job of separating the digits into readable groups. > 0x~~3729 looks similar, but doesn't mean the same thing > at all. > 0x~~0x3729 is ugly and probably less

Re: digit groups

2006-10-25 Thread Jon Fairbairn
On 2006-10-24 at 12:43PDT Ashley Yakeley wrote: > Ketil Malde wrote: > > Tempting to use B8 Cedilla, since it looks somewhat like > > a comma, and is less useful for other purposes -- but > > perhaps it would be to easily confused with a real > > comma? I have some dim recollection that there is a

Re: Indentation of If-Then-Else

2006-10-25 Thread Neil Mitchell
Hi Are these numbers high, or low? I have no idea unless you specify a reference point. Compared to guards, say? Or case? Let's just say that 2000 occursances of a syntactic construct between 3 projects probably means that it's not going to be depreciated ever (thankfully!) Neil _

Re: Indentation of If-Then-Else

2006-10-25 Thread Mirko Rahn
> I have 501 if statements in my current project. Yhc has 626. Hoogle > has 101. If's seem pretty well used to me! 920 in jhc. "I win!" :) Are these numbers high, or low? I have no idea unless you specify a reference point. Compared to guards, say? Or case? For me: find . -name '*.hs' | w

Re: Indentation of If-Then-Else

2006-10-25 Thread Sebastian Sylvan
On 10/24/06, John Meacham <[EMAIL PROTECTED]> wrote: On Tue, Oct 24, 2006 at 05:29:58PM +0100, Neil Mitchell wrote: > >> Actually if-then-else isn't used that often today. Most programmers > >> gave it up in favor of guards. > > > >I question both these statements. Can you cite some evidence here