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

C++ hate

Name: Anonymous 2012-05-10 13:47

Why do people hate C++? It's a good language.

Comparing to C:
- C++ has RAII, C has not
- C++ supports OOP, C does not
- C programs are full of segfaults and bufferoverflows, C++ programs are not

Comparing to Java
- Java has GC, GC is shit, C++ doesn't have GC
- C++ objects can have destructor
- C++ fast, Java is crap

Comparing to Python
- Both are high level
- Python is very slow, C++ is fast
- Python has dynamic type system, C++ has static type system; dynamic type system causes many bugs, static type system prevents many bugs

Comparing to List:
- Lisp is shit, C++ is not
- GC is shit

Comparing to Haskell
- Haskell is toy language, C++ is not

Overall, C++ is superior language in most cases. In some cases you'd prefer Python, when you need slow program, or Lisp when you need shit program. But in most cases you prefer C++.

Name: Anonymous 2012-05-11 2:46

>>24
And why is that? If you want that requirement, you could as well start coding Java. Just let the caller decide if the parameters are ok or not. If it fails then, it's the callers fault. You can write documentation that says function will accept integer, but there's no good reason to enforce that in dynamic typed languages.

Name: Anonymous 2012-05-11 3:17

>>26
Java programmer detected!

Name: Anonymous 2012-05-11 3:31

>>26
go kill yourself faggot

Name: Anonymous 2012-05-11 3:35

>>28
In dynamic languages you generally don't care what type the objects are, as long as they work as wanted. Checking if something is an integer is just stupid. What if someone passed in a floating point number?

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