Zero-Cost 'Tagless Final' in Rust with GADT-style Enums

17 points by abhin4v


anex9d

I know this article is exploratory and I think it’s great. As an aside, and as someone who learned haskell first and found my way to rust, articles like this make me wish there were some happy medium between the two languages. The rust here looks cursed, and the haskell is so much cleaner, but I shy away from haskell because I personally find its laziness difficult to reason about. Is OCaml that middle ground?