3 ms·
F# uses .NET's generics, so the statement regarding List/Set is completely incorrect (all base collections are generic).
by neonsunset 2y ago
F# uses .NET's generics, so the statement regarding List/Set is completely incorrect (all base collections are generic).
- penteract 2y agoI think you misread their claim - they said that generic list/set would have to be classes, not modules (generic modules are a specific thing in OCaml and aren't the same as a module of generic classes).
- mrkeen 2y agoF# has "generics" just like Python and PHP now "have types". It's not a yes/no feature.
- neonsunset 2y agoGive F# a try. It has, and always had, true generics. https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/generics/ https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...
- mrkeen 2y ago> It's not a yes/no feature. FTFM: It's not a true/false feature.
- neonsunset 2y agoAlright. Humor me, what is the issue with F# generics as compared to other languages with generics? Which implementation (that is productively useful) is a "true" one?