./devel/p5-Specio, Type constraints and coercions for Perl

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.44, Package name: p5-Specio-0.44, Maintainer: pkgsrc-users

The Specio distribution provides classes for representing type
constraints and coercion, along with syntax sugar for declaring
them.

Note that this is not a proper type system for Perl. Nothing in
this distribution will magically make the Perl interpreter start
checking a value's type on assignment to a variable. In fact,
there's no built-in way to apply a type to a variable at all.

Instead, you can explicitly check a value against a type, and
optionally coerce values to that type.


Required to run:
[lang/perl5] [devel/p5-Devel-StackTrace] [devel/p5-MRO-Compat] [devel/p5-Eval-Closure] [devel/p5-Module-Runtime] [devel/p5-Role-Tiny] [devel/p5-Ref-Util] [devel/p5-Sub-Quote]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: abc771b3e5d739efc4e8e38d20e05dadb418a0bf
RMD160: 41336722c247fd9901acbeff116b0de775fbd9bc
Filesize: 100.89 KB

Version history: (Expand)


CVS history: (Expand)


   2019-10-27 16:06:41 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
(devel/p5-Specio) Updated to 0.44

0.44     2019-08-14
- Replaced the use of B with XString if it is installed. The latter is much
  smaller and provides the one subroutine from B we cared about. Based on GH
  #15. Implemented by Nicolas R.
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557) | Package updated
Log message:
Bump PKGREVISIONs for perl 5.30.0
   2019-07-01 23:36:01 by Nia Alarie | Files touched by this commit (232)
Log message:
Follow some remaining search.cpan.org redirects.
   2018-11-25 14:17:48 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 0.43

Upstream changes:
0.43     2018-10-26

- Optimized compile-time operations to make Specio itself quicker to
  load. Specio's load time is a non-trivial part of the load time of DateTime
  (and presumably other things that use it). Based on
  https://github.com/houseabsolute/DateTime.pm/issues/85. Reported by
  versable.
   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2017-11-08 21:43:25 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Specio: update to 0.42.

0.42     2017-11-04

- The Perl library claimed it provided types named LaxVersionStr and
  StrictVersionStr but they were really named LaxVersion and
  StrictVersion. The names have now been fixed to match the documentation, so
  they are LaxVersionStr and StrictVersionStr.

0.41     2017-11-04

- Fixed checks for whether a class is loaded in light of upcoming optimization
  in Perl 5.28. Fixed by Sprout (GH #12).
   2017-08-14 21:08:31 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated p5-Specio to 0.40.

0.40     2017-08-03

- Fixed more bugs with {any,object}_{can,does,isa}_type. When passed a glob
  (not a globref) they would die in their type check. On Perl 5.16 or earlier,
  passing a number to an any_* type would also die.

- Fixed subification overloading. If Sub::Quote was loaded, this would be
  used, but any environment variables needed for the closure would not be
  included. This broke enums, among other things.

0.39     2017-08-02

- Many bug fixes and improves to the types created by
  {any,object}_{can,does,isa}_type. In some cases, an invalid value could
  cause an exception in type check itself. In other cases, a value which
  failed a type check would cause an exception when generating a message
  describing the failure. These cases have all been fixed.

- The messages describing a failure for all of these types have been improved.

- You can now create anonymous *_does and *_isa types using the exports from
  Specio::Declare.
   2017-07-04 11:00:10 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
Updated p5-Specio to 0.38.

0.38     2017-07-01

- Simplify checks for overloading to not call overload::Overloaded(). Just
  checking the return value of overload::Method() is sufficient.