Re:Ask HN: What does Ruby have that Python doesn't?
by tptacek on Friday August 22, 2008 @08:03PM
(#284341)
Ok, now I'm not sure I follow. Apart from the performance issues, why can't you replace every method that "yields" with a method that takes the explicit block parameter, and .call() it?
[ Parent
| on HN ]
Re:Ask HN: What does Ruby have that Python doesn't?
by aconbere on Friday August 22, 2008 @08:26PM
(#284362)
sigh yeah... you could do that, but you often times you have to deal with methods that aren't invoked that way.
http://blog.sidu.in/2007/11/ruby-blocks-gotchas.html
is a good run down of some of the problems here
Re:Ask HN: What does Ruby have that Python doesn't?
by shevy on Saturday August 23, 2008 @07:31AM
(#284570)
No it is not. You dodged the question again, by throwing a hardly related blog of someone else at it.
How many people will use yield _AND_ self.send in the same method please?! That seems like an awfully complicated and contrived example. Who the heck does this?