Skip Menu |
 

This queue is for tickets about the Modern-Perl CPAN distribution.

Report information
The Basics
Id: 43061
Status: open
Priority: 0/
Queue: Modern-Perl

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 198b
you're missing a lot of Modern::Perl modules here. use mro 'c3'; these are also a huge plus. use autodie; use utf8; Maybe Moose/self for pm? use if $0 =~ '\.pm$' Moose; use if $0 =~ '\.pm$' self;
Download (untitled) / with headers
text/plain 140b
I've enabled C3 mro in 1.03. I'm on the fence about autodie, as it's not a core module in 5.10. Let me think about utf8 a little bit more.
Download (untitled) / with headers
text/plain 326b
On Thu Feb 05 13:36:35 2009, ECARROLL wrote: Show quoted text
> you're missing a lot of Modern::Perl modules here. > > these are also a huge plus. > use autodie; > use utf8; >
<snip> use utf8; is only to tell the perl parser that there's UTF-8 characters in the source - I'm not sure I understand the motivation for turning it on by default.
Download (untitled) / with headers
text/plain 810b
Show quoted text
> > use utf8; is only to tell the perl parser that there's UTF-8 characters > in the source - I'm not sure I understand the motivation for turning it > on by default.
The fact that it isn't on by default is because of legacy systems: (perldoc utf8) "When UTF-8 becomes the standard source format, this pragma will effectively become a no-op. For convenience in what follows the term UTF-X is used to refer to UTF-8 on ASCII and ISO Latin based platforms and UTF-EBCDIC on EBCDIC based platforms." All *modern* perl installs should have utf8, and should be encoding there files in utf8. The gain might not apply much for those of us that speak English, but Japenese Perl users will find this as a requirement for modernity. True, it only allows them to use utf8 in the source, but that is a *very* big thing.
For what it's worth I agree. Perl 6's default encoding for source code is UTF-8, as well.
I also suggest adding no indirect ':fatal'; to disable indirect method syntax.
CC: perl [...] evancarroll.com
Subject: Re: [rt.cpan.org #43061] Modern Perl lacking some pragmas.
Date: Tue, 2 Feb 2010 09:42:16 -0600
To: bug-Modern-Perl [...] rt.cpan.org
From: Evan Carroll <evan [...] dealermade.com>
Download (untitled) / with headers
text/plain 310b
2010/2/2 Алексей Суриков via RT <bug-Modern-Perl@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=43061 > > > I also suggest adding > > no indirect ':fatal'; > > to disable indirect method syntax. >
Awesome pragma, I totally agree. -- Evan Carroll System Lord of the Internets
Download (untitled) / with headers
text/plain 517b
Maybe it is time to fork this with something more aggressive... use utf8; use autodie; no indirect ':fatal'; use features ':5.12'; # adds unicode_strings I think it is unfortunate the representation this module makes are at odds with the intentions. It isn't Modern Perl, unless the goal is to be Modern. We can agree there are bugs and wrinkles in perl. These pragmas fix them, turn them on. We're not talking a lot of dependencies here. -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
Download (untitled) / with headers
text/plain 142b
I closed this bug with the release of my nextgen pragma (nextgen.pm) -- Evan Carroll System Lord of the Internets http://www.evancarroll.com


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.