On moving code from C# to F#
felienne.com
On moving code from C# to F#
1–10 of 60 posts
Re: On moving code from C# to F#
#2please dont override default scrolling behaviour, the site is unusable
Re: On moving code from C# to F#
#3please dont override default scrolling behaviour, the site is unusable
Yep, agreed. I can only scroll by using the scrollbar.
Re: On moving code from C# to F#
#4Is it possible to call F# code easily from C#? Or vice versa?
Re: On moving code from C# to F#
#5Is it possible to call F# code easily from C#? Or vice versa?
Yes, very easily. Both are compiled to .NET assemblies and can see types of each other.
Re: On moving code from C# to F#
#6Re: On moving code from C# to F#
#7Is 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#
#8Re: On moving code from C# to F#
#9Easy, only up 3 tones.
Re: On moving code from C# to F#
#10I 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..