3 ms·
Yes, you can think of them in an algebraic way. You also can not think of them in an algebraic way. I guess you explained it better than me. What makes them al
by marcosdumay 5y ago
Yes, you can think of them in an algebraic way. You also can not think of them in an algebraic way.
I guess you explained it better than me. What makes them algebraic is the way you think about them and the full set of types they are part of. For the types themselves, the name is meaningless.
- gmfawcett 5y agoOK, I see your point better now. You're saying that reasoning about a type algebraically is more of a perspective, not a fundamental statement about the type itself. I think I could get behind that. :) For what it's worth, not all functional languages emphasize the ADT notion per se. E.g., the Ocaml manual generally talks about records, tuples, and variant types; "algebraic" really only comes up with GADTs are discussed.