DEV Community


Discussion on: Reverted Ruby 2.7 new feature: Method reference operator

hanachin profile image
Seiei Miyagi Author

In other programming languages, they have more convenient way to reference the method.

IMO, the difference between Ruby and other languages is method calling.
Other languages can reference the method by .method_name without (), but ruby can't because Ruby doesn't need () for method call.

The .: looks like method calling ., with additional : can reference the method. That makes sense to me.