Re:Tagged unions, or ‘variants’, in C
by jnbiche on Monday June 26, 2017 @08:31AM
(#14636217)
If you're familiar with Scala, then type classes in Haskell are pretty close to traits in Scala (but not implicit conversions, which can make use of traits, but are an orthogonal language feature). They're also close to Rust's traits, it you're familiar with Rust.
[ Parent
| on HN ]