AnyEvent::Strict(3)

πŸ’… AnyEvent::Strict β€” bestie edition πŸŽ€

okay so picture this: AnyEvent::Strict(3), a whole little Perl module whose entire personality is force strict mode on for the whole process. that's it. that's the whole vibe. she's the friend who reads the group chat receipts and calls out every typo ✨


🌸 NAME 🌸

AnyEvent::Strict β€” literally just forces strict mode on for the entire process, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

like, this is the whole thing, it's giving minimalist icon:

use AnyEvent::Strict;
# strict mode now switched on

that's it. one line and the vibe check is passed πŸ’…


πŸ’– DESCRIPTION πŸ’–

so this module is the implementation of AnyEvent's strict mode β€” she's the main character of "we are going to be careful now" energy πŸŽ€

the way that loading her makes AnyEvent check all the arguments to AnyEvent-methods?? obsessed. every single one gets looked at. the tradeoff is that she is, lowkey, slower β€” and ngl sometimes much slower, like the argument checking can literally take longer than the actual function itself 😭 so yeah, she's thorough but she is not free. periodt.

she also wraps all your callbacks to check for modifications of $_ πŸ‘€ and if that happens? that's a programming bug inside the watcher callback, fr fr. she's not being dramatic, she's being accurate πŸ’€

🫢 normal bestie behaviour: you don't usually load this module yourself. you get her indirectly through the PERL_ANYEVENT_STRICT environment variable instead (peep AnyEvent for the deets). but like β€” if you want to load her manually, you absolutely can, at any time. she's always down. no appointment needed πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

the icon behind it all:


✨ and that's the whole page, bestie β€” brought to you by perl v5.42.0, dated 2019-09-18, filed under AnyEvent::Strict(3). go forth and be strict πŸ’–πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from