Skip to content

Comment on Dynamic Languages Are Static Languages (2011)parent

Comments

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)

Be 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.

C++ (like C) has union, with which you can build tagged unions (aka sum types).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.