Basic lambdas for C - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport Année : 2022

Basic lambdas for C

Résumé

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 N2891, 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 for which the rationale is given in N2890. Follow-up papers N2894 and N2893 extend this feature with auto parameter types and default capture strategies, respectively.
Fichier principal
Vignette du fichier
n2892.pdf (735.07 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03860638 , version 1 (18-11-2022)

Identifiants

  • HAL Id : hal-03860638 , version 1

Citer

Jens Gustedt. Basic lambdas for C: proposal for C23. N2892, ISO JCT1/SC22/WG14. 2022, pp.52. ⟨hal-03860638⟩
54 Consultations
53 Téléchargements

Partager

Gmail Facebook X LinkedIn More