Calling Other CLR-Hosted Languages

The discussion so far has centered on how various functional-language features can be adapted in such a way that data and functions can be easily accessed from other CLR-hosted languages. This is only one half of the picture—functional-language programmers also need to be able to access code written in other languages.

The fundamental issue in this case is independent of the CLR and the .NET Framework. Functional languages are “stateless” (no updateable variables), while object-oriented languages are fundamentally about state—the prototypical “object” encapsulates some state (its instance variables) and provides access to it via its methods.

Fortunately, this issue has been well researched, as it is essentially ...

Get Programming in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.