News for hackers. Stuff that matters.
Re:Some Smalltalk about Ruby Loops by ktpsns on Thursday October 30, 2025 @08:11AM (#45759148)
I agree on the wording difference (method vs message), but the differences still seem to be minor. When it comes to explorability/reflection, Python also has callable(). Both languages are lazy & duck typed. And Pythons for loops emphasize the generator/iterator idioms. I personally prefer Ruby syntax for looping: In JS I prefer forEach() and yet nowadays ES6 defined for-of loops as idiomatic, isn't it?

Sometimes it is not syntax but functionality and stdlib which brings you to a language. For instance, I love the metaprogramming and dynamic dispatch of Julia but I strongly dislike the syntax.

There are no comments on this comment yet.