You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an edge case, but the following code has identical behaviour, provided the same-named method isn't declared in that scope:
Kernel.system(...)system(...)
@mbj I know you've said you prefer the first one for understandability. I think if the code works the same with less information, then the other should be preferred.
On Sat, Feb 16, 2013 at 11:18:14PM -0800, Dan Kubb wrote:
This is an edge case, but the following code has identical behaviour, provided the same-named method isn't declared in that scope:
Kernel.system(...)system(...)
@mbj I know you've said you prefer the first one for understandability. I think if the code works the same with less information, then the other should be preferred.
This is an edge case, but the following code has identical behaviour, provided the same-named method isn't declared in that scope:
@mbj I know you've said you prefer the first one for understandability. I think if the code works the same with less information, then the other should be preferred.
The same rule can be applied to
self.class
, eg:In this example the
self.class
could be removed in#one
and the code would continue to work.The text was updated successfully, but these errors were encountered: