Incase it doesn’t show up:

  • void_star@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    3 months ago

    Python has its quirks, but it’s much much cleaner than js or c++, not fair to drag it down with them imo

    • tunetardis@lemmy.ca
      link
      fedilink
      English
      arrow-up
      10
      ·
      3 months ago

      I think the thing with C++ is they have tried to maintain backward compatibility from Day 1. You can take a C++ program from the 80s (or heck, even a straight up C program), and there’s a good chance it will compile as-is, which is rather astonishing considering modern C++ feels like a different language.

      But I think this is what leads to a lot of the complexity as it stands? By contrast, I started Python in the Python 2 era, and when they switched to 3, I was like “Wow, did they just break hello world?” It’s a different philosophy and has its trade-offs. By reinventing itself, it can get rid of the legacy cruft that never worked well or required hacky workarounds, but old code will not simply run under the new interpreter. You have to hope your migration tools are up to the task.

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      The terse indexing and index manipulation gets a bit Perl-ish and write-only to me. But other than that I agree.