Function literals and value closures
Abstract
We propose the inclusion of simple lambda expressions into the C standard. We build on a slightly restricted
syntax of that feature in C++. In particular, they only have immutable value captures, fully specified parameter types, and, based on N2735, the return type is inferred from return statements. This is part of a
series of papers for the improvement of type-generic programming in C that has been introduced in N2638.
Follow-up papers N2738 and N2737 will extend this feature with auto parameter types and lvalue captures,
respectively.
Domains
Programming Languages [cs.PL]
Origin : Files produced by the author(s)