Re: Sum types in Clojure? Better to represent as tagged records or asvariant vectors?

2017-08-22 Thread Timothy Baldridge
I think that's true, but even back in 2015, these were the only two sources calling for this approach, and it never really caught on. I even did some experiments with it, but my conclusion was that it was more trouble than it was worth. On Tue, Aug 22, 2017 at 7:46 PM, Sean Corfield

RE: Sum types in Clojure? Better to represent as tagged records or asvariant vectors?

2017-08-22 Thread Sean Corfield
I think part of the issue is that the article dates back to mid-2015 and `clojure.spec` wasn’t a thing back then, was it? Variants feel like a solution to a problem for which we have a much better solution _today_ than we did two years ago. The article talks about using core.typed and