From: Dave Rolsky Date: Fri, 4 Feb 2011 21:57:11 +0000 (-0600) Subject: Mark bad code X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f92e1df634926feb91baee61fc5356388656a0a7;p=gitmo%2Fmoose-presentations.git Mark bad code Remove is => 'bare' that isn't needed Add missing Questions slide --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 2d5b5fa..501be5b 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -2753,7 +2753,8 @@ coerce 'My::DateTime',

Coercion Examples

-
coerce 'ArrayRef[Int]',
+  
# BAD CODE - DO NOT COPY
+coerce 'ArrayRef[Int]',
     from 'Int',
     via  { [ $_ ] };
@@ -3291,7 +3292,6 @@ has history => ( use Moose; has _favorite_numbers => ( traits => [ 'Array' ], - is => 'bare', isa => 'ArrayRef[Int]', default => sub { [] }, init_arg => undef, @@ -3458,6 +3458,10 @@ print Person->meta
+

Questions?

+
+ +

Exercises

# cd exercises