Closed davidchambers closed 7 years ago
I think the reason is that it was simplest to implement. But I definitely agree that it would be much nicer to simply have it be a constant. Nullary functions are ugly and unnecessary in a pure setting.
This would be a breaking change, but I'd love a PR :+1:
I would like
List.Nil
to be the empty list rather than a nullary function which returns the empty list. It would make the examples in the readme slightly more elegant and slightly more similar to their Haskell equivalents.Is there are reason to favour
List.Nil()
, @paldepind? If not, are you open to a pull request?