http://qs321.pair.com?node_id=1129257


in reply to Re^4: RFC: Swagger-codegen for Perl
in thread RFC: Swagger-codegen for Perl

IMHO, Moose is a pretty big dependency to add. All that we need here are vanilla objects. Blessed hashes are fine.

Raisin manages to tie type information into Swagger merely with Type::Tiny. So even creating documentation doesn't need Moose.


TGI says moo

Replies are listed 'Best First'.
Re^6: RFC: Swagger-codegen for Perl
by Anonymous Monk on Jun 06, 2015 at 01:19 UTC

    IMHO, Moose is a pretty big dependency to add....

    You know whats an even bigger dependency? Java :)

    Also, Moose is not the point, code reuse is the point

    Instead of generating code that issues a few has attribute/does calls, its just copy/pasting a lot of the details that should live in seperate modules (baseclass, objtypes , roles, validators ... whatever )

    Also, Moose/Moo/Mo whatever