Skip to content

Commit

Permalink
[docs] more guidelines to adding methods to the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 29, 2009
1 parent ab367f6 commit dde9758
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/guide_to_setting.pod
Expand Up @@ -77,6 +77,16 @@ will restrict the method to invocants that have the C<Positional>
role). Better is to use C<self>, or if invoking a method on C<self>
then you can use C<$.foo> or C<@.bar> directly.

=item All subs and methods are really multis

All built-in methods or subroutines should be declared as C<multi>.

=item Use explicit empty signatures

If a method doesn't take any arguments, give it an explicit empty
signature C<()>. That's very different from omitting the signature
alltogether (which would be an implicit caatch-all signature).

=back

=head1 SEE ALSO
Expand Down

0 comments on commit dde9758

Please sign in to comment.