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
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
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
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
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
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
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
_
> 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
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