I wrote some examples of using MVC3 with a combination of F # and C #, and it works very well, and I also created a template that can be used as a starting point (which should appear in the Visual Studio gallery soon):
There are some good things about using F # in model / controller implementations:
- F # types, such as records, simplify the implementation of a domain model
- You can also use F # asynchronous workflows to implement asynchronous controllers (see this snippet )
A little annoying is that LINQ support in the current version of F # is a bit limited (writing complex queries with a lot of joins and groupings is not easy). However, you can use the dynamic operator if you call stored procedures (see, for example, this blog post ).
(I also wrote some articles about this that have not yet been published - I can send you a draft if you write me an email at tomas@tomasp.net)
Tomas petricek
source share