[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#535607: ITP: libmoosex-has-sugar-perl -- Sugar Syntax for moose 'has' fields

Package: wnpp
Severity: wishlist
Owner: Jonathan Yu <jonathan.i.yu@gmail.com>

* Package name    : libmoosex-has-sugar-perl
  Version         : 0.0403
  Upstream Author : Kent Fredric <kentnl@cpan.org>
* URL             : CPAN
* License         : Perl (Artistic + GPL)
  Programming Lang: Perl
  Description     : Sugar Syntax for moose 'has' fields

Reduced Typing in has declarations.
The constant need to type => and '' is fine for one-off cases, but the
instant you have more than about 4 attributes it starts to get annoying.

More compact declarations.
Reduces much of the redundant typing in most cases, which makes your life
easier, and makes it take up less visual space, which makes it faster to

No String Worries
Strings are often problematic, due to whitespace etc. Noted that if you do
happen to mess them up, Moose should at least warn you that you've done
something daft. Using this alleviates that worry.

Reply to: