Quoting Brandon Van Every <[EMAIL PROTECTED]>:

I have to admit, PARENT_SCOPE nomenclature bugs me.  I don't know of
any mainstream programming language that explicitly asks me to think
about scope when setting a variable.

Ruby asks. But it does so in a so nicely and clear way that you actually like it because code is more readable.

As a reminder, here comes the nomenclature in Ruby:

Scope               Prefix           Example
-----               ------           -------
global variable     $                $global
instance variable   @                @instance
local variable      lowercase or _   local
constant            uppercase        Constant
class variable      @@               @@class_var


--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to