Skip to Main content Skip to Navigation
Reports

Function literals and value closures: proposal for C23

Jens Gustedt 1
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
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.
Document type :
Reports
Complete list of metadata

https://hal.inria.fr/hal-03106767
Contributor : Jens Gustedt <>
Submitted on : Thursday, June 10, 2021 - 10:41:11 AM
Last modification on : Friday, June 11, 2021 - 3:34:29 AM

File

n2736.pdf
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

  • HAL Id : hal-03106767, version 2

Citation

Jens Gustedt. Function literals and value closures: proposal for C23. [Technical Report] N2736, ISO JCT1/SC22/WG14. 2021, pp.55. ⟨hal-03106767v2⟩

Share

Metrics

Record views

4

Files downloads

50