top | item 46414267

(no title)

cardiffspaceman | 2 months ago

To me it implies abstraction such as a constructor, but with no overhead compared to the same steps done in some other way.

discuss

order

zephen|2 months ago

Sure, but languages and the problems we solve with them are both multifaceted, so simply pointing to one tool and saying "this is better than the one you have in your toolbox" is fine, but the plural in "zero cost abstractions" kind of implies that most or all the tools are at parity or better.

saghm|2 months ago

It sounds like you're saying that you consider seeing this single instance of someone writing a library with a costly abstraction to be indicative of the entire language ecosystem not fitting the paradigm. This is kind of hard to take seriously; it's not like C++ doesn't have some costly abstractions as well way more embedded into the language itself (e.g. exceptions).