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 N2632, 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 N2634 and N2635 will extend this feature with auto parameter types and lvalue captures, respectively.
Document type :
Reports
Complete list of metadatas

https://hal.inria.fr/hal-03106767
Contributor : Jens Gustedt <>
Submitted on : Tuesday, January 12, 2021 - 9:42:37 AM
Last modification on : Wednesday, January 13, 2021 - 2:52:23 PM

File

N2633.pdf
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

  • HAL Id : hal-03106767, version 1

Citation

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

Share

Metrics

Record views

29

Files downloads

38