[Moose-commits] r7733 - Moose/trunk/lib/Moose/Manual

matthewt at code2.0beta.co.uk matthewt at code2.0beta.co.uk
Thu Feb 19 17:05:45 GMT 2009


Author: matthewt
Date: 2009-02-19 09:05:45 -0800 (Thu, 19 Feb 2009)
New Revision: 7733

Modified:
   Moose/trunk/lib/Moose/Manual/BestPractices.pod
Log:
switch to :: for types in BestPractices, note the perl identifier requirement for using MX::Types to package type sets later

Modified: Moose/trunk/lib/Moose/Manual/BestPractices.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/BestPractices.pod	2009-02-19 16:56:31 UTC (rev 7732)
+++ Moose/trunk/lib/Moose/Manual/BestPractices.pod	2009-02-19 17:05:45 UTC (rev 7733)
@@ -134,8 +134,9 @@
 =head2 Namespace your types
 
 Use some sort of namespacing convention for type names. We recommend
-something like "MyApp.Type.Foo". I<Never> 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
 




More information about the Moose-commits mailing list