Re:Interfaces – The Most Important Software Engineering Concept
by platz on Saturday February 27, 2016 @12:25PM
(#11187724)
Im guessing F# also may want to limit constructs which cannot interop with C# . Not sure if Scala's HKTs are usable from Java
[ Parent
| on HN ]
Re:Interfaces – The Most Important Software Engineering Concept
by bunderbunder on Saturday February 27, 2016 @01:41PM
(#11187953)
Maybe, but I'm inclined to guess that it could probably be made workable without much more pain than what it takes to interact with F#'s curried functions from C#.
Usually the recommended approach for making F# code usable from C# is to add an object-oriented wrapper layer to the F# library. That ends up being much, much easier in practice than trying to deal with F# code on its own terms from C#.
Re:Interfaces – The Most Important Software Engineering Concept
by MiaoYu_Goh on Sunday February 28, 2016 @01:10PM
(#11191699)
"... add an object-oriented wrapper layer to the F# library."
Do you have any sample code that serves as an example? It would be immensely helpful. Thanks.