Live data from Hacker News

On moving code from C# to F#

felienne.com

1–10 of 60 posts

Re: On moving code from C# to F#

#7
post #4

Is it possible to call F# code easily from C#? Or vice versa?

Yes, I have a WebAPI module written in C# that calls into an F# module for some file processing. From the C# project's perspective, the F# assembly is just another assembly with static methods. It was a great use case for me to highlight the benefits of mixed paradigm programming. By making the WebAPI module state based, it made certain operations easier, while the F# module can do the heavy lifting of processing the data.

You can also do a pure WebAPI module in F#.

Re: On moving code from C# to F#

#10
I think that this code can be much simpler, it is really difficult for me to follow it up. I'm not at all an F# expert, I just studied it a bit for fun last year, but I remember that all the code that I looked at was much more readable..
Post reply on HN