Board index » cppbuilder » Re: E2015 Ambiguity with Stream->Seek
Leo Siefert
![]() CBuilder Developer |
Re: E2015 Ambiguity with Stream->Seek2008-06-25 08:18:21 PM cppbuilder81 Ed Mulroy wrote: QuoteHave you considered offering your services to one of QuoteIt is a phrase so increases the number of reserved phrases. any language description I have ever seen. Have you ever seen a case where, for instance "loop while" is reserved, but "loop" and "while" are not? QuoteAn additional entry in the programmer's mind is the mean that I have to keep in my head more reserved words since both parts of it are already there. It is a valid argument. But as I already stated it may not be an important one. Clarity of syntax is another valid argument and it may be far more important. Quotepeople routinely use some subset of it in what they do, on their work. The addition of "classenum" or "scopedenum" or "mysuperdooperenum" could affect their work. On the other hand, the addition of 'scopedenum" or "scoped enum" would have the distinct advantage of a correspondence between the keyword and the name of the new feature. I do agree with you that that seems like a more compelling argument. QuoteI admit that 'classenum' kind of passes this test although QuoteNumber of reserved words is a red herring. QuoteTo use C++ you need to know the words important to using the language namespace from included libraries. The language itself has very few reserved words, and it is not possible to fence off any of them from your code. Quotethe differences from 'enum' are enough that I wonder about comfortable with them retaining that term. QuoteFor example, it is much further removed than the difference between terminology. If I were designing the language I would probably have reserved "struct" for strictly C style structs. - Leo |