View Single Post
  #29  
Old 08-02-2006, 10:37 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Skrobo2
This is a little off topic, but we were having dissucsion about that on RC a while back. I'm no expert on GS2, so I have a questopn for you Okie. Is it wrong to do like this.blah = {"blah","blah","blah","blah"};? NaS said the proper way to do it was like you stated "this.mykewlarray = "\"One\",\"Two\"";".
NO NO NO NO NO!

You should not be initializing arrays using this.baz = "\"foo\",\"bar\"";.

You should use the this.baz = {foo, bar}; method, not least for cleanliness and editability/comprehension reasons.
__________________
Skyld
Reply With Quote