in reply to Re: How do I prototype a function with a varying number of arguments?
in thread How do I prototype a function with a varying number of arguments?
In the example noted, the comment is not needed; if there were some specific limitation on what the return value should be or a special case that might occur, a comment would be a good idea. That's a marginal case and might or might not be better put in the POD for the subroutine (which should also be there); it would depend on the context. In an internal-use-only subroutine that was not part of a documented external interface, I'd use a comment; in a published, intended-for-use-without-reading-the-code situation, I'd put it in the POD.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I prototype a function with a varying number of arguments?
by JavaFan (Canon) on Jul 31, 2011 at 21:15 UTC | |
by pemungkah (Priest) on Aug 08, 2011 at 17:47 UTC |