| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Merits |
Hi JOHN. 29-Apr-04 00:31:32, JOHN GUILLORY wrote to BILL BIRRELL JG> And just how is a for loop clearer? By the fact alone that a for JG> loop somewhat "hides" the increment portion of the loop, one does JG> not realize as easily what is going on, and therefore JG> automatically fogs things up.... I once had a pocket calulator with all the keys black except the [-] key which was bright orange. Thus illuminated the [-] key was hard to find for those unfamiliar with that device. a for loop promotes the code for finding the next value of the counter to the header of the loop (where it should be easy to find - like the orange key) a while loop only makes obvious the exit condition of the loop. with a for loop you can see on the for line whaere it starts, how it proceeds from one counter value to the next, and where it ends. of cource if you're writing obfuscated code the for loop also gives more options :o) -=> Bye <=- ---* Origin: I smell a rat. Did you bake it or fry it? (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.