From: Trans Date: 2006-10-03T14:15:20+09:00 Subject: Re: Private visibility should be removed from Ruby 2 [was: Caveats with #method_missing] Yukihiro Matsumoto wrote: > Because Ruby is not Smalltalk. Really. > > Let me elaborate a bit. Since I made the syntax of Ruby more > traditional than Smalltalk's "everything is a message passing" style, > you can write traditional code in Ruby, for example: > > print "hello world\n" > > rather than > > "hello world" printIt. > > or something like that. If everything procedure is a method, what > should I do? There were several choices, and I chose "print" to be a > method with implicit receiver, but made it "private" to detect weird > > "foobar".print "hello world\n" > > as an error. If you want to remove "private" from Ruby2, I expect > your proposal addresses the above issue. That's interesting. The difference between function and method? T.