C: Adding modern programming language features to C
- 20 August 2018
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 48 (12) , 2111-2146
Abstract
Summary: The C programming language is a foundational technology for modern computing with millions of lines of code implementing everything from hobby projects to commercial operating systems. This installation base and the programmers producing it represent a massive software engineering investment spanning decades and likely to continue for decades more. Nevertheless, C, which was first standardized almost 30 years ago, lacks many features that make programming in more modern languages safer and more productive. The goal of the C project (pronounced “C for all”) is to create an extension of C that provides modern safety and productivity features while still ensuring strong backward compatibility with C and its programmers. Prior projects have attempted similar goals but failed to honor the C programming style; for instance, adding object‐oriented or functional programming with garbage collection is a nonstarter for many C developers. Specifically, C is designed to have an orthogonal feature set based closely on the C programming paradigm, so that C features can be added incrementally to existing C code bases, and C programmers can learn C extensions on an as‐needed basis, preserving investment in existing code and programmers. This paper presents a quick tour of C features, showing how their design avoids shortcomings of similar features in C and other C‐like languages. Experimental results are presented to validate several of the new features.Keywords
Funding Information
- Natural Sciences and Engineering Research Council of Canada
This publication has 20 references indexed in Scilit:
- Advanced exception handling mechanismsIEEE Transactions on Software Engineering, 2000
- Kinded type inference for parameteric overloadingActa Informatica, 1996
- Assignment as the sole means of updating objectsSoftware: Practice and Experience, 1994
- Synchronous and asynchronous handling of abnormal events in the μsystemSoftware: Practice and Experience, 1992
- Pascal User Manual and Report1991
- A case for teaching multi-exit loops to beginning programmersACM SIGPLAN Notices, 1985
- A One-Pass Algorithm for Overload Resolution in AdaACM Transactions on Programming Languages and Systems, 1982
- An algorithm for the selection of overloaded functions in ADAACM SIGPLAN Notices, 1981
- Alphard: Form and Content1981
- A theory of type polymorphism in programmingJournal of Computer and System Sciences, 1978