Quote:
Originally Posted by Inverness
Graal is highly dynamic language, I don't think it's a good idea to have private variables unless there is easy to tell the access level of any variable.
|
Hrm, I can see what you mean. However, I don't agree that the 'pr_' prefix is the best way to DECLARE a private variable.
Maybe something like this:
PHP Code:
private this.pr_var = "redfish";
Where the keyword actually declares the variable as private, and the name indicates that it is a private variable, as some sort of convention maybe.
I think indicating what's private and what's not should be completely down to the programmer.