|
|
|
|
|
by mikerichards
3662 days ago
|
|
I'm not a Haskell programmer, but I wish more languages had Newtypes. Most of the time I'm too lazy (or consider it too much boilerplate) to wrap strings in classes. But on more than one occasion I've spent too much time tracking down a bug because I passed the wrong string to the wrong argument in a method. |
|
[1] Implementation - https://github.com/louthy/language-ext/blob/master/LanguageE...
[2] Unit tests / examples - https://github.com/louthy/language-ext/blob/master/LanguageE...
[3] The request that led to the feature - https://github.com/louthy/language-ext/issues/95