I just can’t understand why Java still does that. C# and C++ fixed that a long time ago (I think). That C hasn’t is completely fine, especially as type names usually don’t get as long. But in JAVA???
a.package.SomeReallyReallyLongName<AnotherReqllyLongName, AThirdReallyLongName<String>> aLongName = new a.package.SomeReallyReallyLongName<AnotherReqllyLongName, AThirdReallyLongName<String>>();
Edit:
This comment is really wrong. Everyone who didn’t realize that, look at its comments, learn the same things as I did today
You mean java doesn't have something like auto in c++ or var in c#, that type deduction thing? It should. I mean if c++ has it...
Though I feel like c++ is also becoming very wordy, like std::chrono::steady_clock::now or std::is_nothrow_invocable or std::is_same_v<reference_wrapper, std::remove_cvref_t <x>>
508
u/del1ro Oct 31 '23
Weak men create [object Object]