* Mark A. Stratman via RT (bug-MailTools@rt.cpan.org) [120815 18:43]:
Show quoted text
I tried to explain to you why 'REF' is not needed to be clear. The
documentation of MailTools is about 20 years old, one of the earliest
modules on CPAN. I did not use Perl at the time, so other people decided
this syntax. Most other modules use it the same syntax, amongst them
all documentation in Perl Core. If you get the syntax of all those
other modules to change, I may do that as well.
Show quoted text> But let's take a step back and consider the more salient question:
> What will better serve the readers?
Legacy and consistency is my counter argument.
Show quoted text> Given the doc "open(HASH)", will the following programmers think "gee,
> open(%hash) is not technically passing a hash, but rather a list of
> key/value pairs, therefore I should pass a ref instead":
Show quoted text> Beginner - No.
> Intermediate - probably not
> Advanced - Maybe.
Wrong. You translate HASH by %hash. Where does this '%' come from?
Guessing? Wrong guess, should be \%hash.
I do dislike the way Perl5 works sometimes: Larry does not want to decide
on things like naming convensions (use of capitals and _ in names),
name-spaces (module naming), or documentation structure. Perlpod(1)
doesn't tell you which chapter names should be used or how, it doesn't
tell you how to document functions or methods. Everyone tries to follow
some important modules in style.
Tomorrow I go to a two-day Perl5/Perl6 summit in the German city of Perl.
Larry and 20 other core developers will be there. I have already on
my slide a call (again) for decissions about this (at least for Perl6),
because I do like consistency. But it will write-down the way most people
do it now to start with.
Show quoted text> Given the doc "open(HASHREF)" will the following programmers pass a ref:
> Beginner - Yes
> Intermediate - Yes.
> Advanced - Yes.
No, HASHREF whould be for me a \\%h, a REF to HASH
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark@Overmeer.net solutions@overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net