in reply to Easily catalog subroutines with a synopsis comment
That suggestion is just as bad as the one which directs to put a comment on the same line as a statement ...
$p = some-op ; # comment
... or asks to put a comment after a if or a loop block ...
if ( ... ) { ... } # end of ... condition
... for they generate useless text to ignore, and unnecessary work when/if the time comes to modify code or comment.
For your original purpose, I would rather have a better (API) pod (or any other kind of documentation you like) which visually highlights the sub and describes it succinctly.
Then again I am opining on matters of style ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Easily catalog subroutines with a synopsis comment
by blogical (Pilgrim) on Apr 18, 2008 at 12:24 UTC | |
by Herkum (Parson) on Apr 20, 2008 at 06:34 UTC | |
by hsmyers (Canon) on Apr 20, 2008 at 17:21 UTC | |
by Herkum (Parson) on Apr 21, 2008 at 00:55 UTC | |
by hsmyers (Canon) on Apr 21, 2008 at 05:14 UTC | |
by parv (Parson) on Apr 22, 2008 at 06:38 UTC | |
by blogical (Pilgrim) on Apr 23, 2008 at 03:25 UTC | |
by rir (Vicar) on Apr 25, 2008 at 21:05 UTC |