At what point do you cross over from:
"Various ways to accomplish the same goal is good,
because it allows the language to work the way
different people think about working."
into the land of:
"Duplicate names and techniques to do the same
atomic thing ends up confusing the nubys"
?
results = my_array.collect{ ... }
results = my_array.map{ ... }
a = Proc.new{ ... }
b = lambda{ ... }
def whee; ...; end
c = self.method( :whee )
def foo &blockAsBlock
blockAsBlock.call
yield
end
foo &a
foo &b
foo &c
def bar blockAsParam
blockAsParam.call
end
bar a
bar b
bar c
Regexp globals vs. MatchData
#insert your own examples here
--
(-, /\ \/ / /\/