3 ms·
I don't think there's broadly "idiomatic" C++. There's "idiomatic Google C++" though.
by 0xbear 9y ago
I don't think there's broadly "idiomatic" C++. There's "idiomatic Google C++" though.
- saghm 9y agoWhile what's idiomatic is subjective, I think there's plenty that everyone can agree is not idiomatic, so I think GP's quote is still pretty commonly used
- sqeaky 9y agoI think we can all agree that actively re-purposing the postfix-- operator to perform a dereference on a smart is definitely not idiomatic. Idiomatic might be fuzzy, but it definitely does not include active attempts obfuscation, malice or jokes. The code in the article could be any of these depending on context.
- saghm 9y agoYep, no arguments here!
- int_19h 9y agoNot in a literal sense of the word, perhaps. But in practice, "idiomatic C++" is taken to mean STL- and Boost-like.