TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Least Known C++ Keywords

6 pointsby jaywalkerover 14 years ago

5 comments

leleleover 14 years ago
If you don't use any of these keyword, then please do not present yourself as a C++ programmer at all. Some are quite infrequent - I've never used "auto", "register" - but I can't think about any serious C++ OOP code lacking "explicit".
评论 #2085507 未加载
sreanover 14 years ago
I am not a good or a professional C++ programmer by any means, but still I find these quite basic. I think you will encounter them in the first 5 items or so of Meyers.
cpetersoover 14 years ago
Has anyone here actually seen (or written) C++ code that used the <i>and</i>, <i>not</i>, or <i>or</i> keywords (from iso646.h)? These keywords seem cleaner and are standard, yet I have never seen (or dared use) them in practice. In my day job, I write code that must be portable across a dozen platforms, so I am paranoid about using "unusual" C++ features.
casterleighover 14 years ago
Kind of reminded me what a gigantic, arcane mess C++ really is. It's not enough that there are half a dozen different semantics of "const" -- the "mutable" keyword let's you break the convention of the const function (not changing member values) without a user of your interface ever knowing about it.
评论 #2095325 未加载
wglbover 14 years ago
And a true C++ programmer can name ALL the uses of the 'static' keyword.
评论 #2087742 未加载