Making an operator a convenience wrapper around an existing function or method provides additional flexibility to users in how the functionality is called and in what options are passed in.
This rule raises an issue when the function that defines the operation of a operator consists of something other than a single function call.
\[~ann.campbell.2] What about less strict raising issue?
"This rule raises an issue when the function that defines the operation of a custom operator consists of something other than a single *return statement*."
(we don't care about return value expression)
=== on 19 Jun 2015, 15:42:20 Ann Campbell wrote:
That's up to you [~elena.vilchik], but if the point of the rule is to off-load the logic into another function for flexibility, then people can get around the rule if they can cram all the functionality into a single line without actually fulfilling the purpose. E.G.