• bluGill@kbin.social
    link
    fedilink
    arrow-up
    4
    arrow-down
    3
    ·
    11 months ago

    Easy to say, but in the real world those are things you don’t do so who cares? You mostly hear about it from people who use other languages and want to pick on C

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      I think there’s a much higher chance of running into UB on C++ vs C due to the complexity of the language. That’s why I don’t touch C++ and only use C if a higher level language isn’t available. I can understand the C language in its entirety, whereas that’s really not feasible with C++, especially at the edges.

      So I think it’s absolutely fair criticism of C++, but a little tired for C.