3 ms·
It was a bit fun comparing the Haskell version and the C# version: https://github.com/wolfgarbe/SymSpell/blob/master/SymSpell/SymSpell.cs https://github.com/wo
by danielscrubs 5y ago
It was a bit fun comparing the Haskell version and the C# version:
https://github.com/wolfgarbe/SymSpell/blob/master/SymSpell/SymSpell.cs https://github.com/wolfgarbe/SymSpell/blob/master/SymSpell/S...
https://github.com/cbeav/symspell/blob/master/src/SymSpell.hs https://github.com/cbeav/symspell/blob/master/src/SymSpell.h...
- 0xcoffee 5y agoI don't really see a reason why the C# version couldn't be written in a similar functional style as the Haskell version. I don't see them using linq anywhere. I see shallow clones, double constructors, no use of records. So I won't be too quick to judge. Would love to see someone try their hand at optimizing the C# version, using the full availability of modern c#.