Jump to content
Search Community

while loop convention

eigenface test
Moderator Tag

Recommended Posts

I'm curious, does this

 

var i:int = array.length;

while (--i > -1) { ...

 

have any advantage over this

 

var i:int = array.length;

while (i-- > 0) { ...

 

and if so, what? I ask because I believe this changes was made in TweenLite/Max.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...