> it has accumulated code that look like mistakes in hindsight.
I don't think there is any language that people use that doesn't have this issue. C++ for example has a huge number of warts. Ideally like with std::auto_ptr they are deprecated and removed over time.