-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
It is in fact possible to define instance or class variables whose name starts with an uppercase letter:
class Foo
@A = 1
@@B = 2
def foo
@A + @@B
end
end
Foo.new.foo # => 3
The same holds for Ruby as well. However, this is causing codegen problems for us, such as in #7865.
Should we deprecate this syntax or do we accept it as valid?
Fryguy