develooper Front page | perl.perl5.porters | Postings from August 2016

Re: Internals:: undocumented

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
August 6, 2016 14:53
Subject:
Re: Internals:: undocumented
Message ID:
CAHhgV8jVn2k0_oKopGTx1DpAUAHFV7doVzKoPaJUucd+mLJ42g@mail.gmail.com
On Sat, Aug 6, 2016 at 3:39 PM, Tony Cook <tony@develop-help.com> wrote:

> On Sat, Aug 06, 2016 at 09:05:23AM -0400, James E Keenan wrote:
> > What is Internals?
>
> Internals is deliberately undocumented, unsupported.
>
> dist/ and cpan/ shouldn't use it.
>
> Tony
>

Quite frankly, I believe adding two simple functions in Scalar::Utils would
solve most of this problem: "get the refcount" and "make the variable
readonly". Conceptually they're both fairly sane and easy to explain
operations and apparently responsible for about 95% of all use-cases of
Internals::. The other 5% is stuff like making a readonly variable writable
(Hash::Util and a few CPAN modules) or modifying a refcount (I hope no one
is doing this), which both fail the sanity check IMO.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About