Skip Menu |
 

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 64731
Status: open
Priority: 0/
Queue: Moose

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

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



Subject: Warn when you subclass from a non-Moose class
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 574
Download (untitled) / with headers
text/plain 574b
Mouse has a very nice feature that warns you if you inherit from a non-Mouse class. This has saved me a lot of hair pulling trying to figure out why things are silently not working. Silent errors are bad. I would like to see Moose issue a similar warning. As it would be rude to issue a warning and then provide no solution, Moose would embrace the functionality of MooseX::NonMoose. It would also provide a Moose::NoIReallyMeanToInheritFromNonMooseAndDontTryToFixIt module. Arguments for/against the warning are here: https://rt.cpan.org/Ticket/Display.html?id=63675
From stevan.little [...] iinteractive.com Thu Jan 13 10: 33:23 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.234 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_SOFTFAIL=0.665] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-19315-1294902444-1604.64731-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-64731 [...] rt.cpan.org> <rt-3.8.HEAD-19315-1294902444-1604.64731-4-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <AANLkTimyhBRMSkUQn9=hxjGO4bwCdthfvCdAE9KpxXT- [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=0016364ed5de4338ed0499bc0997
X-Spam-Score: -6.234
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4A72D24146C for <cpan-bug+Moose [...] hipster.bestpractical.com>; Thu, 13 Jan 2011 10:33:23 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YwhQWXsJS4lk for <cpan-bug+Moose [...] hipster.bestpractical.com>; Thu, 13 Jan 2011 10:33:21 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 09040241469 for <bug-Moose [...] rt.cpan.org>; Thu, 13 Jan 2011 10:33:20 -0500 (EST)
Received: (qmail 23109 invoked by uid 103); 13 Jan 2011 15:33:20 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 13 Jan 2011 15:33:20 -0000
Received: from mail-qw0-f50.google.com (HELO mail-qw0-f50.google.com) (209.85.216.50) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Thu, 13 Jan 2011 07:33:17 -0800
Received: by qwd6 with SMTP id 6so1801475qwd.9 for <bug-Moose [...] rt.cpan.org>; Thu, 13 Jan 2011 07:33:15 -0800 (PST)
Received: by 10.229.100.20 with SMTP id w20mr2162999qcn.50.1294932795144; Thu, 13 Jan 2011 07:33:15 -0800 (PST)
Received: by 10.220.77.79 with HTTP; Thu, 13 Jan 2011 07:33:15 -0800 (PST)
Received: by 10.220.77.79 with HTTP; Thu, 13 Jan 2011 07:33:15 -0800 (PST)
Delivered-To: cpan-bug+Moose [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #64731] Warn when you subclass from a non-Moose class
Return-Path: <stevan.little [...] iinteractive.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Moose [...] hipster.bestpractical.com
X-RT-Mail-Extension: moose
Date: Thu, 13 Jan 2011 10:33:15 -0500
X-Spam-Level:
To: bug-Moose [...] rt.cpan.org
From: Stevan Little <stevan.little [...] iinteractive.com>
RT-Message-ID: <rt-3.8.HEAD-19313-1294932803-1540.64731-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1128
Download (untitled) / with headers
text/plain 1.1k
I agree. We have talked about coring MX::NonMoose before. I think that should be part of the upcoming 2.0 On Jan 13, 2011 2:07 AM, "Michael G Schwern via RT" <bug-Moose@rt.cpan.org> wrote: Show quoted text
> Thu Jan 13 02:07:24 2011: Request 64731 was acted upon. > Transaction: Ticket created by MSCHWERN > Queue: Moose > Subject: Warn when you subclass from a non-Moose class > Broken in: 1.21 > Severity: Wishlist > Owner: Nobody > Requestors: mschwern@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=64731 > > > > Mouse has a very nice feature that warns you if you inherit from a > non-Mouse class. This has saved me a lot of hair pulling trying to > figure out why things are silently not working. Silent errors are bad. > > I would like to see Moose issue a similar warning. > > As it would be rude to issue a warning and then provide no solution, > Moose would embrace the functionality of MooseX::NonMoose. It would > also provide a > Moose::NoIReallyMeanToInheritFromNonMooseAndDontTryToFixIt module. > > Arguments for/against the warning are here: > https://rt.cpan.org/Ticket/Display.html?id=63675 >
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1625


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.