I appreciate that this article highlights the value of using of named functions in functional-style code. Too often, programmers assume that “functional programming” means using lambdas everywhere, when in my experience, lambdas are actually a (very mild) code smell.
If the compiler produces a program that doesn’t match your description, you can debug the compiler. Can you debug an LLM?