4 ms·
>$, as a way of getting object metadata out of a class, namespace, etc. (Using $ has been argued out of favor because it is common in legacy code, particularly
by 0xFFC 10y ago
>$, as a way of getting object metadata out of a class, namespace, etc. (Using $ has been argued out of favor because it is common in legacy code, particularly in code generation and template systems which are not necessarily valid C++ but produce C++ sources.)
you have got to be kidding me, right ?
"$" adding this character too to the C++ ? What left we haven't add ?
Why not use only something like "reflexpr" which is more C++ish than $ character. Why make C++ more difficult to parse and read with every release ?
TBH I genuinely don't understand why we need both ? why not only have "reflexpr".
- foonathan 10y ago$ is already a valid identifier character in a clang and gcc extension. And there won't be reflexpr and $, those are two different proposal. And due to the extension, it won't be $ (most likely).
- 0xFFC 10y agoThank you. I really hope so.
- adrift 10y agoIt's a matter of taste; for me 'reflexpr' is about as disgusting as 'constexpr'.
- marvy 10y ago> What haven't we added yet? There's also the @ sign and the backtic `. I think that's it for ASCII.
- smitherfield 10y agoAnd caret (^), although it is used in Microsoft's C++/CLI and C++/CX extensions.
- kibwen 10y agoThe caret is used for bitwise xor. C-style bitwise ops in general take up a lot of the good characters, in so many languages. :(
- maccard 10y agoMany characters have multiple uses depending on context; e.g. A single asterisk, or a single ampersand
- smitherfield 10y agoYes, right, brain-fart. (In my defense bitwise xor is probably the least common operator).
- a_t48 10y ago->* begs to differ
- marvy 10y agoCan someone remind me what that's for? I never use it, I keep trying to look it up and then I forget it again. Maybe because I never quite understood it properly.
- smitherfield 10y ago