Notes IV

Jarrod qwerty at ytre.wq
Sat Jan 26 04:59:48 PST 2008


On Fri, 25 Jan 2008 18:08:46 +0900, Bill Baxter wrote:

> It's funny you should say that, because just today I was staring at a
> couple of foreaches that were giving me compiler errors and scratching
> my head.  Turns out I had written this:
> 
>       foreach(i,ang, angles) {
>           ...
>       }
> 
> Now maybe you can see right away what's wrong, but in my somewhat sleepy
> state and with my preferred ProggyTT programming font, I just didn't
> notice the missing pixel there.   It's much harder to mistake a comma
> for an 'in'.

But there will still be a comma or a semicolon there for cases where you 
want the index.
Wouldn't just allowing commas and semicolons work better?

> Hmm, that doesn't sound like a scientific study.  Python has many more
> users than D despite the fact that apparently most people don't like it.

Perhaps I should say 'many' instead of 'most' don't like it. I frequent 
and moderate a few programming forums, and trust me, there are a *lot* of 
groans and moans about it. *Especially* from the lisp/scheme fans. They 
seem to hate it with a passion. Some have even written some 'interesting' 
poems about it. True story.



More information about the Digitalmars-d mailing list