Philosophy and "for" loops — more from Go and Rust
Philosophy and "for" loops — more from Go and Rust
Posted Jul 4, 2013 22:01 UTC (Thu) by tjc (guest, #137)Parent article: Philosophy and "for" loops — more from Go and Rust
Thanks for the article. I've found the entire series to be fascinating, and hope it continues for a while longer.
The Algol-60 for-loop examples linked in the article are interesting, especially examples 2-4. It appears that if-then-else and while loops are expressions in Algol-60 and not restricted to stand-alone statements. I think this feature was contributed by John McCarthy, but I can't find a link. It seems more natural--and more general--than the common "test ? value : value" idiom.
