Feature #17004

Updated by sawa (Tsuyoshi Sawada) almost 2 years ago

In ruby, ruby it often is the case for a method's return value to is not be used by its caller.    Even when a method returns something meaningful, its caller is callers are free to ignore it. them. 

 Why not provide a way for a method to know if its return value is needed or not? not.    That adds a room for methods to be optimized, optimize, by for instance skipping creation of complex return values. 

 The following Following pull request implements `RubyVM.return_value_is_used?` method, method which does that: