in reply to Re^7: How to enforce void context in Reply?
in thread How to enforce void context in Reply?

IMHO, the Sa() form should always be avoided.

Why? I can't think of a single problem that solves.

  • Comment on Re^8: How to enforce void context in Reply?

Replies are listed 'Best First'.
Re^9: How to enforce void context in Reply?
by AnomalousMonk (Archbishop) on May 21, 2015 at 14:42 UTC

    I think TheDamian's PBP has a convincing discussion of the evils of the implicit return. The chief benefits (IMHO) of an explicit return are improved clarity and maintainability of code.


    Give a man a fish:  <%-(-(-(-<

      That's an argument for using return when the function is meant to return a value (as I do). In theory, it also helps to use return; when the sub isn't meant to return anything (since it doesn't require the reader to know of the policy or of how well the programmers adhere to it), but I'm not convince it's the case in practice.