News for hackers. Stuff that matters.
Re:The Early History of F# [pdf] by Smaug123 on Saturday June 13, 2020 @10:05AM (#23509419)
The way we do it at $WORK is to do a proper F# API and then expose a fluent C# API that wraps it. Our APIs are usually based on constructing descriptions - which a fluent API can do just as well as a "native" F# one - and then we provide a very few functions which interpret those descriptions. The hard interop is in constructing the descriptions, because C# likes objects to look very different from F#; we just give up and expose two separate APIs for constructing the F# objects.

There are no comments on this comment yet.