4 ms·
Modern JS or any JS is such a different language with not even a tenth of the features that C++ has, it's ridiculous to compare them. It's no wonder it looks "c
by wakawaka28 2y ago
Modern JS or any JS is such a different language with not even a tenth of the features that C++ has, it's ridiculous to compare them. It's no wonder it looks "cleaner" -- it just isn't doing anything like what C++ does.
- int_19h 2y agoWe're talking about syntax, not semantics, so I don't see how it matters.
- wakawaka28 2y agoYou can't express more semantics without more syntax. So the "clean" JS is not burdened by the extra semantics that C++ must account for.
- suby 2y agoI'm not sure that this is true. Let's take a look at generics. In C++, we use angled brackets like myFunction<SomeType>(); This could however be done without introducing angled brackets. myFunction(myFirstClassType); which is what more and more languages nowadays do like Zig.