3 ms·
The author specifically says C++ is too restricted, and that it makes no distinction between the "class" and "type" the author is talking about. C++ has no sum
by rhaps0dy 11y ago
The author specifically says C++ is too restricted, and that it makes no distinction between the "class" and "type" the author is talking about.
C++ has no sum types (afaik, the language is so huge I might very well be wrong)
- dllthomas 11y agoC++ (like C) has union, with which you can build tagged unions (aka sum types).
- kelvin0 11y agoBe that as it may, the tone of the article is clearly written 'looking down' at the readers, and tries to rack up some points by showing 'how smart I am (author) to be able to correct most of you...'. If he simply described that the definition of the terms, with some examples and then lead into his point to correct the 'popular' assumptions, it would have been a lot better than feeling like you're being lectured from the pulpit on a Sunday morning.