Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/When are top-level module declarations evaluated?Forum ↗

When are top-level module declarations evaluated?

App Development2 posts134 viewsLast activity Jul 2022
AS
asarpeshkarOP
Jul 2022

When 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 2022

It’s evaluated lazily on the first use and the evaluation is cached (even across different transactions).

← Back to Discussions