

Subject: Object constructor should be renamed

From: "Mark A. Kolesar" <mark@ n r c >

Date: Sun, 19 Aug 2018 13:59:21 -0400

For consistency and conciseness the object constructor should be renamed from initialize to simply new. Consider: class Foo def initialize(a) @a = a end end becomes: class Foo def new(a) @a = a end end my_a = Foo.new("test") Less typing, more consistent. What's not to like? -- Cheers, Mark A. Kolesar Ownture -- Windows provide a limited view. Come out into the open and embrace freedom! Unsubscribe: mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe> http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>