4 ms·
C is the only language that will run on certain strange systems, and that is the only reason that most of these quibbles even matter. It's more of an argument o
by benbenolson 11y ago
C is the only language that will run on certain strange systems, and that is the only reason that most of these quibbles even matter. It's more of an argument of "What is the most portable way to write C?"
C is a very small and elegant language that never lies to you. There aren't any useless functions that are specific to one use case, and things that you don't really, really need are simply left out of the language. This means that instead of spending hours learning the language and all of its quirks, you get to focus on the problem that you're trying to solve, and come up with the most efficient solution possible (there's a reason why almost all performance tests use C as 1). You don't have any language quirks like those that are discussed in this article, unless you are running an architecture that has similar quirks, in which case you're going to have quirks no matter what you do. Edge use cases, as with everything, may cause a bit of quirkiness.
That being said, don't be scared off from C just because of these pedantic arguments.
- appleflaxen 11y agoThat's a great point; thanks for the context.
- pjmlp 11y ago> C is a very small and elegant language that never lies to you. I would call undefined behavior and compiler optimizations lies.
- GregBuchholz 11y ago>C is a very small and elegant language that never lies to you. I've liked: http://www.gowrikumar.com/c/index.php http://www.gowrikumar.com/c/index.php ..and... https://www.google.com/search?q=expert+c+programming+deep+c+secrets https://www.google.com/search?q=expert+c+programming+deep+c+...
- GregBuchholz 11y agoAlso don't miss: http://blog.robertelder.org/7-weird-old-things-about-the-c-preprocessor/ http://blog.robertelder.org/7-weird-old-things-about-the-c-p...