Overloads(3pm)
β¨ NAME β¨
PDL::Complex::Overloads β bestie, it's a subclass of Math::Complex that comes with overload fallbacks π«Ά
πΈ SYNOPSIS πΈ
require PDL::Complex::Overloads;
my $same = PDL::Complex::Overloads::cplx(1, 2) eq '1+2i';
likeβ¦ that's it. that's the whole vibe. she's small but she works. π
π DESCRIPTION π
Okay so picture this: this subclass has literally one job π β she gives you all of Math::Complex's overloads, but with the "fallback" set to true.
Why tho?? Because that lets you do string-comparison for backwards compatibility, that's why. it's giving "small class, big purpose" energy fr fr π
ngl the entire reason she exists is that fallback flag. no fallback, no backwards compat, no slay. periodt. π
π AUTHOR π
Ed J β the icon, the legend, the moment π
π¦ SEE ALSO π¦
Math::Complexβ her mother, her muse, her whole personality tbh π§
okay and if you were wondering where this all came from: it's the User Contributed Perl Documentation for Overloads(3pm), babes. π
shipped with perl v5.38.2, dated 2024-04-10 β mwah, kisses, go read some docs, ily π«Άβ¨
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms