We've started posting some new articles on Wrox.com. An article that should be of interest to this forum is an excerpt from
Professional .NET Framework 2.0 by Joe Duffy titled "
Common Type System (CTS): One Platform to Rule Them All." It discusses type safety in some depth with examples in C#, C++/CLI, Python, and F#. Here's a link to the article and the beginning of the article itself:
Common Type System (CTS): One Platform to Rule Them All
By Joe Duffy
The Common Language Runtime (CLR) â or more precisely any implementation of the Common Language Infrastructure (CLI) specification â executes code inside the bounds of a well-defined type system, called the Common Type System (CTS). The CTS is part of the CLI, and is maintained via the ECMA and International Organization for Standardization (ISO) international standards bodies. It defines a set of structures and services that programs targeting the CLR may use, including a rich type system for building abstractions out of built-in and custom abstract data-types. The CTS constitutes the interface between managed programs and the runtime itself, in a language agnostic manner.
As a brief example of the diversity of languages that the CTS supports, consider four examples, each of which has a publicly available compiler targeting the CLR: C#, C++/CLI, Python, and F#:
...
We hope you find the rest of the article interesting and useful.
Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog:
http://wroxblog.typepad.com/
Jim's Book of the week:
No book this week - Donate to the Red Cross!