Adding dynamic types to C#

N/ACitations
Citations of this article
29Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Developers using statically typed languages such as C and Java are increasingly having to interoperate with APIs and object models defined in dynamic languages. This impedance mismatch results in code that is difficult to understand, awkward to analyze, and expensive to maintain. In this paper we describe new features in C 4.0 that support the safe combination of dynamically and statically typed code by deferring type checking of program fragments with static type dynamic until runtime. When executed, these dynamic code fragments are type-checked and resolved using the same rules as statically typed code. We formalize these features in a core fragment of C and prove important safety properties. In particular, we show that subtyping remains transitive. © 2010 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Bierman, G., Meijer, E., & Torgersen, M. (2010). Adding dynamic types to C#. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6183 LNCS, pp. 76–100). https://doi.org/10.1007/978-3-642-14107-2_5

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free