bearophile wrote:
Max Samukha:
Ah, it is simply the unfortunate comma expression evaluated to 3. Comma expressions need to go. Thanks.

There are so many design holes in the C language that's the other
languages must be really bad to be worse than C :-) Designing
languages is hard.

Appreciating language designs is subjective. IMHO C has a remarkably good design. It has an awkward precedence for the shift operators, an odd syntax for function declaration, a few conversions are messed up... other than that, there's a lot of good things to say about it. I think it's considerably better designed than e.g. Fortran, which is not much older. And look at Pascal - whereas on the outside it looks so clean and well-designed, it is virtually useless in its standard incarnation.

Not wanting to start a language war, but to just say C has plenty of design holes and then patronize it with the comment that designing languages is hard - well, you better have a hell of an argument up your sleeve.


Andrei

Reply via email to