Re:C++ pitfalls
by 430gj9j on Wednesday November 28, 2012 @11:48AM
(#4843448)
All languages have pitfalls. Including the author's beloved Java. For example:
There's no substitute for knowing your tools well.
[ Parent
| on HN ]
Re:C++ pitfalls
by wonderzombie on Wednesday November 28, 2012 @03:52PM
(#4844663)
The difference is that languages can have more pitfalls, more severe pitfalls, pitfalls which are more difficult to detect, and so on.
I don't love Java, not by any stretch, but it's difficult to argue that Java and C++ are anywhere near equivalent in this dimension. Effective C++ is littered with examples of gotchas which are highly peculiar to C++ and the C++ compiler. It's an incredibly complex language.
Whether C++ worth these trade-offs for a particular team, project, or company is orthogonal.
I assume you meant to say:
System.out.println(x == y);