develooper Front page | perl.perl5.porters | Postings from April 2012

[perl #108286] Wishlist: Overridable keywords

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
April 23, 2012 14:55
Subject:
[perl #108286] Wishlist: Overridable keywords
Message ID:
rt-3.6.HEAD-4610-1335218123-993.108286-15-0@perl.org
On Mon Apr 23 14:20:09 2012, dcmertens.perl@gmail.com wrote:
> Can someone point me to the discussion where it was decided that
overriding
> if() was a good idea? It seems to have sprung out of nowhere in this
> discussion. I skimmed through the related tickets but only saw discussion
> of glob(). Did I miss it?

Overriding if() and being *able* to override if() are two different things.

Anyone who overrides if() is probably asking for trouble.

But it would be nice to override length() and vec().  Where do we draw
the line?  Or, rather, why do we need to draw a line?  Instead of
debating over every keyword about whether it should be overridable,
let’s just make them all overridable, allowing smarter people to do
things we haven’t thought of.

I only brought up if() in particular because it can have elsif attached
to it, and we need to figure out how things are going to fit together.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=108286

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