libmoox-struct-perl 0.017-ok1 source package in openKylin
Changelog
libmoox-struct-perl (0.017-ok1) yangtze; urgency=medium * Build for openKylin. -- openKylinBot <email address hidden> Mon, 25 Apr 2022 22:03:04 +0800
libmoox-struct-perl (0.017-ok1) yangtze; urgency=medium * Build for openKylin. -- openKylinBot <email address hidden> Mon, 25 Apr 2022 22:03:04 +0800
Series | Published | Component | Section |
---|
File | Size | SHA-256 Checksum |
---|---|---|
libmoox-struct-perl_0.017.orig.tar.gz | 31.9 KiB | 142cc235215efe3bef00b5323ba4bae8062f30228378e2ca26e35ec0e211df01 |
libmoox-struct-perl_0.017-ok1.debian.tar.xz | 3.3 KiB | 938171fc7a01874968b3bdc053ea4cce2eb8faa5e57781bc159b8bc4c828d7af |
libmoox-struct-perl_0.017-ok1.dsc | 2.1 KiB | 9716629537927ee19b638b13521ccec4924089f9534ba0c5cdb3ee641ea9f713 |
MooX::Struct allows you to create cheap struct-like classes
for your data using Moo.
.
While similar in spirit to MooseX::Struct and Class::Struct,
MooX::Struct has a somewhat different usage pattern.
Rather than providing you with a "struct" keyword
which can be used to define structs,
you define all the structs as part of the "use" statement.
This means they happen at compile time.
.
A struct is just an "anonymous" Moo class.
MooX::Struct creates this class for you,
and installs a lexical alias for it in your namespace.
Thus your module can create a "Point3D" struct,
and some other module can too,
and they won't interfere with each other.
All struct classes inherit from MooX::Struct.