Remix.run Logo
masklinn 4 days ago

> Suppose it were lexical scope and you needed it function scope. Then what do you do?

Defer a bulk thing at the function scope level, and append files to an array after opening them.

biztos 4 days ago | parent [-]

That seems like more work, and less readability, than sticking in the extra function.

Would be nice to have both options though. Why not a “defer” package?