----- Original Message ----

> From: Michael G Schwern <schw...@pobox.com>
>
> Sim functions can combine together to make more complicated sims.
> 
>     package Sim::Person;
> 
>     use Test::Sims;
> 
>     sub sim_person {
>         my %defaults = (
>             name     => rand_name(),
>             age      => rand_age(),
>             birthday => sim_datetime(),
>         );
> 
>         return Person->new( %defaults, @_ );
>     }
> 
>     export_sims();
> 
> Combine with things like Data::Random and Data::Generate to create yet more
> random data quickly.

First feature request:  automatic Moose support to build random data which 
conforms to Moose constraints :)  (Yes, I know it's much, much harder than it 
sounds).

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to