develooper Front page | perl.perl5.porters | Postings from October 2001

Re: [PATCH] core-only patch for clamp/readonly hashes

Thread Previous | Thread Next
Simon Cozens
October 30, 2001 17:16
Re: [PATCH] core-only patch for clamp/readonly hashes
Message ID:
On Wed, Oct 31, 2001 at 03:12:18AM +0200, Jarkko Hietaniemi wrote:
> So it's the clamping that is worrying you, not the hash/array readonlyness?

No, it's the fact that we're encouraging modifying the core to support
something that could be done in a module.

pod/perlhack.pod says:

    =item Could it be a module instead?

    Perl 5 has extension mechanisms, modules and XS, specifically to avoid
    the need to keep changing the Perl interpreter.  You can write modules
    that export functions, you can give those functions prototypes so they
    can be called like built-in functions, you can even write XS code to
    mess with the runtime data structures of the Perl interpreter if you
    want to implement really complicated things.  If it can be done in a
    module instead of in the core, it's highly unlikely to be added.

    =item Is the feature generic enough?

    Is this something that only the submitter wants added to the language,
    or would it be broadly useful?  Sometimes, instead of adding a feature
    with a tight focus, the porters might decide to wait until someone
    implements the more generalized feature.  For instance, instead of
    implementing a ``delayed evaluation'' feature, the porters are waiting
    for a macro system that would permit delayed evaluation and much more.

    =item Does it potentially introduce new bugs?

    Radical rewrites of large chunks of the Perl interpreter have the
    potential to introduce new bugs.  The smaller and more localized the
    change, the better.

How many of those paragraphs would you like to remove?

So what if I have a fertile brain?  Fertilizer happens.
             -- Larry Wall in <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About