Implementing closures and first-class functions in WebAssembly
Alex Dovzhanyn
While building Theta, a functional programming language that compiles to WebAssembly, I encountered an interesting challenge. In functional languages like Theta, first-class functions and closures are fundamental. They allow functions to be passed as arguments, enabling core abstractions such as...