From: Matt S Trout Date: Thu, 19 Feb 2009 17:05:45 +0000 (+0000) Subject: switch to :: for types in BestPractices, note the perl identifier requirement for... X-Git-Tag: 0.71_01~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=410daadb31a736e7f124f9d4c3e47ca4a42cfd7c;p=gitmo%2FMoose.git switch to :: for types in BestPractices, note the perl identifier requirement for using MX::Types to package type sets later --- diff --git a/lib/Moose/Manual/BestPractices.pod b/lib/Moose/Manual/BestPractices.pod index 691f7d0..c73f4d3 100644 --- a/lib/Moose/Manual/BestPractices.pod +++ b/lib/Moose/Manual/BestPractices.pod @@ -134,8 +134,9 @@ changing the parents. =head2 Namespace your types Use some sort of namespacing convention for type names. We recommend -something like "MyApp.Type.Foo". I use "::" as the namespace -separator, since that overlaps with actual class names. +something like "MyApp::Type::Foo". If you're intending to package +your types up for re-use using MooseX::Types later, avoid using +characters that are invalid in perl identifiers such as ' ' and '.'. =head2 Do not coerce Moose built-ins directly