From: "Berger, Daniel" Date: 2006-04-11T22:46:26+09:00 Subject: Re: Smalltalk's favorite Boolean method > -----Original Message----- > From: list-bounce@example.com > [mailto:list-bounce@example.com] On Behalf Of Ernest Micklei > Sent: Tuesday, April 11, 2006 7:13 AM > To: ruby-talk ML > Subject: Smalltalk's favorite Boolean method > > > Hi, > > For a long time I have been programming Smalltalk. > Recently, Ruby "got me" and I was wondering how the > famous ifTrue:ifFalse: could be added to the System. > > 1 = 2 > ifTrue: > [Transcript show: "true!" ] > ifFalse: > [Transcript show: "false!"] How is this effectively different than: if 1 == 2 puts "true!" else puts "false!" end ??? Dan