2 ms·
I am confused why you cite these languages as an example to your claim that closures are preferred over nested functions in language design (which is already a
by uecker 23d ago
I am confused why you cite these languages as an example to your claim that closures are preferred over nested functions in language design (which is already a confusing statement), as many of them do have nested functions, e.g. Go, Julia, C#, Javascript, Nim. Rust has at least limited "non-capturing" nested functions as far as I know.