Project

General

Profile

Actions

Feature #7055

closed

Allow `.foo=` as a synonym of `self.foo=`

Added by alexeymuranov (Alexey Muranov) over 11 years ago. Updated over 11 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:47657]

Description

=begin
I propose to make the use of self in method calls optional:

.foo = 'bar'

instead of

self.foo = 'bar'

This only matters of course for assignment methods, to distinguish a method call from creating or setting a local variable.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0