|
|
Log in / Subscribe / Register

Or even old loop constucts

Or even old loop constucts

Posted Jul 5, 2013 17:13 UTC (Fri) by tjc (guest, #137)
In reply to: Or even old loop constucts by etienne
Parent article: Philosophy and "for" loops — more from Go and Rust

I've never liked for(;;) -- it's a special case where "nothing" evaluates to "true", which is different from the rest of the language, where 1 is the canonical value for true, and "nothing" means ... "nothing".


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds