4 ms·
I love it how it claims to be "in C++", yet I had to read a lot of the snippets to find anything that wasn't just C. Finally realized it uses default argument v
by unwind 5y ago
I love it how it claims to be "in C++", yet I had to read a lot of the snippets to find anything that wasn't just C. Finally realized it uses default argument values in some functions, but that was all I could find in the time I wanted to spend.
Not a fault per se I guess, but I wonder why people do things like that. To me it'd be like using an aircraft carrier to go shopping, or something. And yes, I realize there's no real cost in requiring a C++ compiler but ignoring 99% (or whatever) of the language's capabilities, but it looks weird to me. :)
- zokier 5y agoIt's targeting VS2010, which iirc had really crappy C compiler and far better C++ compiler. That's why writing pure C in MSVC/Windows world is relatively rare compared to C masquerading as C++.
- doodpants 5y agoIt also uses "//" for comments.
- misnome 5y agoAh, but that is in C99!
- marcosdumay 5y agoIt would be like using an aircraft carrier to go shopping if the carrier had the same driving difficulty or a car, required the same crew, could use the same parking space and roads, had the same fuel efficiency but was still pretty much a giant capable war machine. Oh, and if it costed the same too. I guess on this scenario a lot of people would take their carriers to shopping too.