> Giles suggestion, to reverse the order of the terms, is a good one,
> because it prevents a typo from compiling without error and
> accidentally causing an assignment at run-time, and instead generates
> a compile-time error, pointing out the typo!

yeah that's exactly it. these bugs happen a lot. often enough for these jokes:

> // World's last bug
> if (red_button_pressed = 1)
>    launch_missile();

I thought that was pretty funny ^_^

-- 
Giles Bowkett
http://www.gilesgoatboy.org

============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org

Reply via email to