31 ms·
Discussed at the time: Ruby vs. Python comes down to the for loop - https://news.ycombinator.com/item?id=29199810 https://news.ycombinator.com/item?id=29199810
by dang 3y ago
Discussed at the time:
Ruby vs. Python comes down to the for loop - https://news.ycombinator.com/item?id=29199810 https://news.ycombinator.com/item?id=29199810 - Nov 2021 (302 comments)
- nirse 3y agoFunny, I started typing a comment here, about the author not getting the Ruby side of things right, that actually the difference would rather be that Ruby uses a special language construct and Python just normal methods and conventions. But just skimming through the previous comments it seems that Python also has these a `yield` keyword that would be more idiomatic to use. I think we're dealing with someone who had limited experience with both Python and Ruby. This article is somehow getting more attention then it merits.