Notes IV
bearophile
bearophileHUGS at lycos.com
Sat Jan 26 13:58:00 PST 2008
Jarrod:
> But there will still be a comma or a semicolon there for cases where you
> want the index.
Yes, like:
foreach(i, el in obj)
So the problem I was talking about is solved, because you can only have commas there, and no semicolons. And it's not easy to mistake a comma for the "in".
> there are a *lot* of
> groans and moans about it. *Especially* from the lisp/scheme fans. They
> seem to hate it with a passion.
And some of them (but not the AI expert Norvig, he has re-invented something like that) don't like the Python doctests, that I love (and I miss when I program in D):
http://docs.python.org/lib/module-doctest.html
> Some have even written some 'interesting' poems about it. True story.
Maybe they are envious that today Python has much more success than their languages, despite being an "inferior" language ;-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list