Overloads(3pm)

πŸ“¦
version 2.085 Β· 4 versions
, in ubuntu noble

✨ 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