Search:

Type: Posts; User: helloworld922

Search: Search took 0.17 seconds.

  1. Replies
    8
    Views
    1,435

    Re: TO do OR NOT TO do

    That's because Google prescribes to the Python philosophy (I think it's called "Pythonic"), where you only get for-each loops :P Both for loop styles has it's uses in my opinion, and it's very easy...
  2. Replies
    8
    Views
    1,435

    Re: TO do OR NOT TO do

    Na, I avoided using the for a while, too, and it's not too difficult at all to just ignore using them :P

    I also ignore for-each loops a lot. I don't know why, but I just like having the control...
  3. Replies
    8
    Views
    1,435

    Re: TO do OR NOT TO do

    The reason the while condition checking is at the end is because of the way you'd read it (and also because it's the way it's done in C/C++):

    You'll read the "do", then it doesn't matter what the...
  4. Replies
    8
    Views
    1,435

    Re: TO do OR NOT TO do

    Do-while loops in my opinion is a great way to not have to manually create "one and a half" while loops.

    Instead of having to copy and paste the same code into two different places with a while...
Results 1 to 4 of 4