Are hare's tagged unions and pattern matching comparable to ADTs found in functional languages? I really miss them in C and would like a "better C" that offers them. Rust does, but of course it's a much bigger language.
They are a subset, I suppose. I'm not an expert at functional programming so I couldn't say. The tutorial which introduces tagged unions is here: https://harelang.org/tutorials/introduction/#tagged-unions-i... They are also covered in section 6.5.18 of the Hare specification: https://harelang.org/specification.pdf Would be curious to hear your thoughts on how they compare given your (presumed) background in functiona…
> Would be curious to hear your thoughts on how they compare given your (presumed) background in functional programming.
I'm just a student with an interest in programming languages and very little knowledge and experience, so I don't think I'll be able to provide any significant insight ;)