C
Chor Lit
Hi,
I asked Bjarne Stroustrup about the idea of adding colour standard for
C++, and he said that it is very difficult for compiler vendors to
change their IDE. But do you think it is possible ? Note that the
proposed colour standard is not just merely to ease the eye only as
what presently is in C++ compilers, but to aid in syntax disambiguation
and other advantages.
Here are a few advantages that I can think of:
1. By allowing keywords and literals in different colours, C++ can
introduce new keywords easily because they are now living in different
'space'.
2.Colours can even be used to differentiate between the operator '>'
from the angle bracket '>' in template.
3. Also, names such as '1ABC' and '.ABC' will be acceptable because we
can always differentiate character '1' and '.' from thier usual type,
no confusion.
4. We can even drop the comment '//' and '/* */' since comment can also
be assigned a unique colour.
5. We can also assign a special colour to all overloaded operators to
differentiate from normal operators and dropped the keyword 'operator'
in the definition.
I believe there are plenty more advantages in using colours in C++.
There are a lot of details in C++ that I can't think of that might
benefit from using colour scheme in C++. I hope this will spark an idea
to the committee. What do you think ?
I asked Bjarne Stroustrup about the idea of adding colour standard for
C++, and he said that it is very difficult for compiler vendors to
change their IDE. But do you think it is possible ? Note that the
proposed colour standard is not just merely to ease the eye only as
what presently is in C++ compilers, but to aid in syntax disambiguation
and other advantages.
Here are a few advantages that I can think of:
1. By allowing keywords and literals in different colours, C++ can
introduce new keywords easily because they are now living in different
'space'.
2.Colours can even be used to differentiate between the operator '>'
from the angle bracket '>' in template.
3. Also, names such as '1ABC' and '.ABC' will be acceptable because we
can always differentiate character '1' and '.' from thier usual type,
no confusion.
4. We can even drop the comment '//' and '/* */' since comment can also
be assigned a unique colour.
5. We can also assign a special colour to all overloaded operators to
differentiate from normal operators and dropped the keyword 'operator'
in the definition.
I believe there are plenty more advantages in using colours in C++.
There are a lot of details in C++ that I can't think of that might
benefit from using colour scheme in C++. I hope this will spark an idea
to the committee. What do you think ?