zoffixznet / Mojo-PDF

PDF generating Perl 5 module with the Mojo goodness!
1 stars 2 forks source link

Clearer code #6

Closed zoffixznet closed 8 years ago

zoffixznet commented 8 years ago
<mst> also
<mst> use Types::Standard qw(ArrayRef); use Types::Common::Numeric qw(PositiveInt);
<mst> then 'isa => ArrayRef,' and 'isa => PositiveInt,' # NOTE THE LACK OF QUOTES THOSE ARE CONSTANTS
<Zoffix> mst++
<Zoffix> That part annoyed me :) Glad there's a fix :)
<mst> hm, 'at' could be done via
<mst> Tuple[Int,Int],
<mst> too
<mst> or even Tuple[PositiveInt,PositiveInt],
<mst> Moo intentionally avoided having its own type system