Re:Eval("quire".replace(/^/,"re"))(moduleName)
by Fudgel on Sunday January 14, 2024 @08:10PM
(#38996229)
What does this do?
[ Parent
| on HN ]
Re:Eval("quire".replace(/^/,"re"))(moduleName)
by defrost on Sunday January 14, 2024 @08:16PM
(#38996275)
Presumeably (not my language) it frames "require ModuleName" as some thing that can be tested for whether it would evaluate.
Therefore a failure in evaluation is not the same as a failure of something "required" because it cannot be found.
It's a curious kind of hackity hack often seen (in various forms) to roughly spack fill some other deeper issue.