From: Andres Date: 2008-04-24T06:25:04+09:00 Subject: Re: Ruby and object paradigm On 23 abr, 07:51, Peņa, Botp wrote: > From: Andres [mailto:andresgaragi...@gmail.com] > # Iīm a smalltalk developer and now i'm beginning with Ruby. I found > > smalltalk is cool. > > # words like "puts" on the ruby syntax that i donīt understand. > > rtfm ;) > Yes, you are right. sorry > # The basic object paradigm formula is "receiver + message", an emisor > # send a message to a receiver. > > yes. but ruby is nice. it does not "forces" us to do things just because of some oo paradigm.. remember, not everyone view the programming world as receiver.message only; eg, i feel at ease writing 1+1 instead of 1.+ 1 ;) Yes i see ruby like a very nice language, only i have some questions. I donīt want a language that "forces" us to do things just because of some paradigm, but when the language is more pure all is more simple. Example, if "if else" is a message i can implement this in other classes when i want other behavior, if "if else" is a keyword i can īt. If there are less keyword on the syntax, then there are less things to remember ;). > > # is > # Transcript show: 'Hello world' > > if you want a longer way, no problem. > > 070:0> Kernel.puts "hello" > hello > => nil > > note, other objects may implem puts too, but you already know that ;) Ok, the receiver is implicit, perfect. I donīt want write the receiver i only want read the message implementation or redefine the message in other class. Thanks to all Regards Andrés