When are top-level module declarations evaluated?
App Development2 posts134 viewsLast activity Jul 2022
AS
asarpeshkarOP
Jul 2022When are top-level module declarations evaluated? On import?
Normally this wouldn’t matter, but there are cases where the RHS of a binding entails evaluating a partial function, so I’m wondering just how early that would blow up.
CO
cocreature
Jul 2022It’s evaluated lazily on the first use and the evaluation is cached (even across different transactions).