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