|
|
|
|
|
by tsimionescu
496 days ago
|
|
Sure, but it's still a choice that C made, long before C++, so it's bizarre to see it in reference to how much worse C++ is. As for the actual syntax itself, I do wonder why they didn't use ## or #{ }# or something similar, since # was only being used for the preprocessor, whereas / and * were much more common. |
|
Or maybe he just didn't care about having to use whitespace to disambiguate. The other piece of similarly ambiguous syntax in B is the compound assignment, which was =+ =- =* =/ rather than the more familiar C-style += etc. So a=+a and a= +a would have different meaning.