1. 1 Nurul

    You are correct Ruby ofrfes the lack of parentheses as shorthand for invocation of a parameter-less method.While convenient, it makes for treating methods as first class objects in Ruby considerably less convenient and, thus, you don’t see methods-as-objects used often in Ruby.Sad, because it enables some pretty simple, straightforward, and very powerful design patterns.Instead, Ruby encourages the use of blocks to encapsulate a callable. Powerful in and of itself and enables a different set of patterns not possible with Python’s lambda.

Leave a Reply