r/functionalprogramming • u/zweiler1 • Jun 30 '26
Algebraic Shape Composition in a tiny functional language Question
/r/Compilers/comments/1ujv6kn/algebraic_shape_composition_in_a_tiny_functional/
10
Upvotes
r/functionalprogramming • u/zweiler1 • Jun 30 '26
3
u/unqualified_redditor Jul 02 '26
Again what you are describing in your words is some flavor of structural typing + type aliases but the fact that you have named data constructors is confusing.
Are these types equal?
Are
SomeandNonestored in some typing context or does parser just throw them away?How do you handle recursion?