develooper Front page | perl.perl5.porters | Postings from May 2010

RFC: Refactoring OS type mapping using Perl::OSType and bringing it into core.

Thread Next
From:
David Golden
Date:
May 20, 2010 11:43
Subject:
RFC: Refactoring OS type mapping using Perl::OSType and bringing it into core.
Message ID:
AANLkTimG9lTyn64lPFDfaX00eZ-S3dSKR8QfrF08ut8H@mail.gmail.com
Several modules distributed with Perl use OS-specific back-end module. E.g.
ExtUtils::MM::*, Module::Build::Platform::*,
ExtUtils::CBuilder::Platform::*, File::Spec::*.

I have extracted OS mappings from Module::Build and ExtUtils::CBuilder into
a new module called Perl::OSType.  ( c.f. http://p3rl.org/Perl::OSType )

I plan to modify Module::Build and EU::CB (at a minimum) to use this new
module (which would mean it would come into core).  It would then be
available for other modules (both distributed with Perl and on CPAN) to
likewise refactor their OS mapping to use it.  This will reduce duplicated
code and improve ease of maintenance over time.

Before I actually pull the trigger on this change, I wanted to put the
concept to p5p for comment.  Constructive criticism is greatly appreciated.
Bikeshed colors will be ignored.

Thank you,

David


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