KiokuD...Shadow(3pm)
π NAME π
KiokuDB::TypeMap::Shadow β bestie, it tries a whole list of KiokuDB::TypeMaps in order, one after the other, no skipping π
β¨ VERSION β¨
version 0.57 β this is the era we're living in, periodt π
π¦ SYNOPSIS π¦
Like, here's the whole vibe:
KiokuDB->new(
backend => ...,
typemap => KiokuDB::TypeMap::Shadow->new(
typemaps => [
$first,
$second,
],
),
);
She's a wrapper, she takes a list of typemaps, and she just... shadows them in order. Obsessed πΈ
π DESCRIPTION π
Okay so picture this: you wanna do mixin-inheritance-style merging of typemaps β like, combining them β and the way you do that is by shadowing an ordered list. That's literally what this class is for. Iconic behavior, no cap β¨
Lowkey the main character here is internal use, though: KiokuDB uses this thing to overlay the user typemap on top of the KiokuDB::TypeMap::Default instance that the backend hands over. So the default is chillin' underneath, and your typemap is the moment on top. π«Ά
Now, this is not the same as using "includes" in KiokuDB::TypeMap, bestie β don't get it twisted. That inclusion is computed symmetrically, kind of like roles do it. This one is an ordered shadowing list. Different energy entirely π
fr fr: if you were about to swap one for the other like they're the same thing, they are not. Symmetric β ordered. That's the whole tea. π
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β the icon who made this happen π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive. π
And it's free software, babes: you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, that's the license, that's the deal π§
cute lil sign-off moment: this page came to you courtesy of perl v5.34.0, dated 2022-05-23, and it was hand-delivered by the User Contributed Perl Documentation crew. mwah π bye bestie, go shadow some typemaps π¦
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms