Re:Is C++ fast?
by thestoicattack on Friday January 18, 2019 @09:46AM
(#18939600)
That's Java, isn't it? I write lots of C++ without classes.
[ Parent
| on HN ]
Even though Java is still very "class-centric", in the strictest sense Java doesn't make "everything a class". There have always been primitives for things like int, long, boolean, float, double, etc. And now that we have MethodHandles and what-not, you can (sort of) start to think of functions as first class entities in Java. And there are Lambdas as well which effectively let you build a function without it needing a class to contain it.
Re:Is C++ fast?
by thestoicattack on Friday January 18, 2019 @10:49AM
(#18940067)
I was being a little flippant and unfair to Java because I was trying to find where the claim "everything is a class" had appeared from.