Skip Menu |

This queue is for tickets about the Cant CPAN distribution.

Report information
The Basics
Id: 26007
Status: resolved
Priority: 0/
Queue: Cant

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: This should be UNIVERSAL::cant
Modules that add to the UNIVERSAL namespace should be done as UNIVERSAL::method. I don't particularly like the idea of adding a method to UNIVERSAL just to save one whitespace character from ! $object->can('foo') to $object->cant('foo') But that's just personal preference. As long as it's under UNIVERSAL::cant it should be fine.
From: DMUEY [...] cpan.org
On Sat Mar 31 08:59:54 2007, ADAMK wrote: Show quoted text
> Modules that add to the UNIVERSAL namespace should be done as > UNIVERSAL::method.
Doh! I knew that. I'll upload the proper-ized one when off off vacation. Show quoted text
> I don't particularly like the idea of adding a method to UNIVERSAL just > to save one whitespace character from ! $object->can('foo') to > $object->cant('foo') > > But that's just personal preference. As long as it's under > UNIVERSAL::cant it should be fine.
I agree, this was sort of a proof of concept module. I think most folks will use !can() I'll marl this as closed once its fixed up. Anything I can do to have "cant" taken offline?
From: DMUEY [...] cpan.org
I just uploaded UNIVERSAL::cant 0.0.1 Anything I can do to have the misnamed "cant" taken offline?
From: DMUEY [...] cpan.org
Just uploaded cant 0.0.2, it uses UNIVERSAL::cant and the POD explains what happened and recommends they use UNIVERSAL::cant