View Single Post
  #32  
Old 02-02-2008, 07:13 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by cbkbud View Post
I like this.private.foo, but maybe it could be accessed within the script with just this.foo?

The idea of _var and _func sounds really bad to me, would make code look messy in my opinion.
this.private seems a bit long winded. If anything, an underscore would be best. If we're talking in terms of "messy" coding as in unreadable, I'm sure a protected variable using underscores would be more noticeable than a this.protected prefix.
Reply With Quote