By CLOS I meant "closure", which I know of in connection to LISP, and also seem to have read about with regards to JavaScript.
In those languages lambda functions can be used to improve code clarity.
However this "clarity" must be used with caution, since a C++ programmer has a different understanding of clarity than an old hand programming in LISP.
Of course the same goes for other languages as well.
I had this whole thing floating around my mind because an older response in this thread was arguing about "parentheses", and I thought that lambda functions could also be used in FPC.
It's just that instead of parentheses, language constructs like PROCEDURE or BEGIN and END are used here.
FPC
main has
anonymous functions (in
this thread on the German forum you can find a machine generated German translation of the announcement) which are the Object Pascal variant of lambda functions.
That thing about "noreturn" and "noexcept" was then nonsense that caught my eye while looking over the English FPC manual documentation, which I didn't read any further.
I still wonder where you found the
noexcept, because FPC does not support that... 🤔