News for hackers. Stuff that matters.
Re:Why Hy? by Kodiologist on Tuesday May 03, 2022 @10:59AM (#31249177)
I'm not familiar with Jupyter internals, but I think functions would work well for this. Hy allows multi-statement anonymous functions, and you can do stuff like `((fn [] … ))` to define and immediately call the function. One advantage of this over `let` is that it allows old locals to be garbage-collected. If memory isn't an issue, though, `let` should work well.

There are no comments on this comment yet.