Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Modern C++ is safe

Name: Anonymous 2012-05-06 2:32

Deal with it, faggots. Mobile and server platforms are the future. We need to do more with less hardware. C++11 is efficient--and just as easy to write as other modern languages. C# is the way to go for general purpose desktop application programming.

Enjoy your shitty Lisp, C, Haskell, and generally trying to look hardcore, though.

Name: Anonymous 2012-05-06 2:38

C++ has outstandingly complicated grammar. "Outstandingly" should be interpreted literally, because all popular languages have context-free (or "nearly" context-free) grammars, while C++ has undecidable grammar. If you like compilers and parsers, you probably know what this means. If you're not into this kind of thing, there's a simple example showing the problem with parsing C++: is AA BB(CC); an object definition or a function declaration? It turns out that the answer depends heavily on the code before the statement - the "context". This shows (on an intuitive level) that the C++ grammar is quite context-sensitive.

In practice, this means three things. First, C++ compiles slowly (the complexity takes time to deal with). Second, when it doesn't compile, the error messages are frequently incomprehensible (the smallest error which a human reader wouldn't notice completely confuses the compiler). And three, parsing C++ right is very hard, so different compilers will interpret it differently, and tools like debuggers and IDEs periodically get awfully confused.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List