Please remove ?:
Stewart Gordon
smjg_1998 at yahoo.com
Fri Jun 2 06:43:16 PDT 2006
Lionello Lunesu wrote:
> I just run accross the following code at my work:
>
> # NoWallCheck?value=_T("0"):value=_T("1");
>
> Took at least a minute to figure out what was going on.
>
> Please remove ?:... It's useless, slow (just like if/else, but looks
> faster since it's so "convenient") and unreadable!
Useless? I've put it to plenty of use. So have many C programmers,
some of which have moved on to D.
Slow? I'm surprised. Do you have a benchmark?
Unreadable? To me, it's certainly more readable than some code.
> L.
>
> (and removing it will free up the "?" for writefln!! :D)
What do you want it to do in writefln?
Stewart.
More information about the Digitalmars-d
mailing list