Conclusions

We have described a method for supporting nonstrict functional languages on the .NET Framework, by introducing a language, Mondrian, that uses it. Although there is quite a gap between the functional and object-oriented computational models, the method is straightforward.

Calling functional code from object-oriented languages is not as seamless as the reverse process. Traditional functional languages have no concept of “object” and “method,” and certainly no concept of the state that an object typically embodies. This means that without making significant additions to the functional languages, they are unable to present an object-oriented “view” of themselves to object-oriented clients.

For example, an object-oriented client would ...

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.