3 ms·
Maybe I'm not understanding the articles premise exactly, but if you're using three-way comparisons frequently, why would you not just implement the `diff3` ?
by bilekas 4y ago
Maybe I'm not understanding the articles premise exactly, but if you're using three-way comparisons frequently, why would you not just implement the `diff3` ?
It's not that complicated and well documented, infact I'm sure someone has already done it in go.
http://www.cis.upenn.edu/~bcpierce/papers/diff3-short.pdf http://www.cis.upenn.edu/~bcpierce/papers/diff3-short.pdf
- iainmerrick 4y agoIt's not three-way as in comparing three strings; here they're comparing two strings, with a "three-way" result: a<b, a==b, a>b
- bilekas 4y agoOkay that makes a bit more sense, I was sure something wasn't registering right with me reading it.