> The sum type, which the author is talking about, is not the same as "discriminated union" pattern, the latter being the crude implementation of the former.
Could you say something about the difference between the two? I'm not aware what it is.
Edit: wow I accidentally a word.