foreach ... else statement

bearophile bearophileHUGS at lycos.com
Sun Jan 4 14:26:41 PST 2009


Daniel de Kok:
>Wouldn't it be more adequate to rewrite this as a function/method that takes a predicate?<

In my dlibs there are things that allow to do that, but the code is slower.

---------------

BCS:

>Wait, that's not the way I would expect else to work.<

See the answer by Guido V. R. himself to that post I have given the URL.


>I think your expectation would be a good feature but I can't really see else being the right keyword to use.<

I agree, with a better naming it can be good feature to have. (I don't like its naming in Python too).

Bye,
bearophile



More information about the Digitalmars-d mailing list