J
Jon
August Karlstrom said:If you apply your reasoning to a = a + 1 you will see the problem.
I don't see it.
August Karlstrom said:If you apply your reasoning to a = a + 1 you will see the problem.
Think of a new programmer. Is he likely to understand that typedef means
alias in reality or likely to think that it means declaration of a new
type? Therefore, "Alias" is better.
Juha Nieminen said:Did you know that you can use '/' to separate paths in dos/windows
as well? (Well, at least with all compilers I know.)
I don't think it's easy to confuse the meaning of a lone \
at the end of a line with something like "\n".
A "contextual analysis by parsers" is not necessary for your "paths
in dos/windows", so we are left with two, rather unambiguous, cases.
It's a too-overloaded token: dos/windows paths, line continuation,
escape... making for unnecessary contextual analysis by parsers.
Jon said:Try it and see. (I meant from the context of complete replacement of C
strings, by working at the library level cannot be done).
Jon said:Note that string literals in C++ are not std::strings.
Jon said:Think of a new programmer. Is he likely to understand that typedef means
alias in reality or likely to think that it means declaration of a new
type?
Therefore, "Alias" is better.
* Keith Thompson said:If you had written "... but also the standard symbol is used ..." I
would have found it less confusing. Perhaps a language barrier?
Jon said:It's a too-overloaded token: dos/windows paths, line continuation,
escape... making for unnecessary contextual analysis by parsers.
joe said:If the goal is to make parsing trivially easy though, the overloading of
tokens has to go away.
Every context where a token shows up has ramifications. I'll bet one can
contrive some incorrect code where having discrete tokens for paths, line
continuations, and escape would have to be considered in a parser.
Jon said:Think of a new programmer. Is he likely to understand that typedef means
alias in reality or likely to think that it means declaration of a new
type? Therefore, "Alias" is better.
* Juha Nieminen said:Did you know that you can use '/' to separate paths in dos/windows
as well? (Well, at least with all compilers I know.)
* Jon said:Think of a new programmer. Is he likely to understand that typedef means
alias in reality or likely to think that it means declaration of a new
type? Therefore, "Alias" is better.
It's a too-overloaded token: dos/windows paths, line continuation,
escape... making for unnecessary contextual analysis by parsers.
Its not different, just another escape where the escaped characterI don't think it's easy to confuse the meaning of a lone \
at the end of a line with something like "\n".
Alexander said:Please share your oppinion on anything you do not like in the C or C++
or Java syntax (they're quite similar).
In order to maintain the integrity of the discussion (have everything
at the same place) please respond on comp.lang.c.
Richard said:You are joking?
I see no reasons for "->".
It's a too-overloaded token: dos/windows paths, line continuation,
escape... making for unnecessary contextual analysis by parsers.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.