3 ms·
> Yet Firefox and most AAA games are written in C++. C++ is a very different language from what it was.
by tome 9y ago
> Yet Firefox and most AAA games are written in C++.
C++ is a very different language from what it was.
- jononor 9y agoSure, but a project like Firefox has a lot of the old C++ too.
- jcelerier 9y agoFrom the code I saw of it firefox's code is still pretty much in the 90s mindset. I mean I just went to the github repo and opened a random file and look at this : https://github.com/mozilla/gecko-dev/blob/master/widget/TextEventDispatcher.cpp https://github.com/mozilla/gecko-dev/blob/master/widget/Text... or this : https://github.com/mozilla/gecko-dev/blob/master/dom/base/Attr.cpp https://github.com/mozilla/gecko-dev/blob/master/dom/base/At... raw pointers everywhere, macros, etc etc nsresult Attr::Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult, bool aPreallocateChildren) const { nsAutoString value; const_cast<Attr*>(this)->GetValue(value); ... makes my eyes bleed. the references to netscape everywhere are funny, too.