Poll: Which is better
for loops
while loops
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
loops
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #11
RE: loops
Here's how I derp up a for loop

Code:
for(;;) printf("derp ");


You can even see the teary face after the "for"...

(This post was last modified: 12/03/2012 02:27 PM by ZiNgA BuRgA.)
12/03/2012 02:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
hibbyware
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™

Posts: 1,048.2613
Threads: 19
Joined: 18th Jul 2007
Reputation: -3.09168
E-Pigs: 7.0196
Offline
Post: #12
RE: loops
 Results from ℋiЬЬyℬot™ - "better than Google"
A third option of  "no preference"  is needed for me to vote.

I don't think either is better then the other.  In some situations either could be used but I generally use whichever fits my logic best at the time and whichever will be more readable just in case I need to revisit the loop again at a later date for an edit.

[Image: small_hw_logo_001.png] ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
12/03/2012 03:40 PM
Find all posts by this user Quote this message in a reply
boogschd
boogyman
Worlds End

Posts: 4,954.3196
Threads: 90
Joined: 29th Nov 2007
Reputation: 4.19708
E-Pigs: 43.6852
Offline
Post: #13
RE: loops
i voted for ... for :D

..

its been a while since i did some programming :/
13/03/2012 08:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: