• magic_lobster_party@fedia.io
    link
    fedilink
    arrow-up
    9
    ·
    6 days ago

    Haven’t read through this, but this sounds like what C++ is to C. I’m not sure adding more complexity and features to an already complex language is the right way forward. What is needed is a language that cuts down all the burden that has accumulated in C++ over 3 decades.

    Something like Zig sounds like the better path forward to me. A completely new language from scratch with cross interoperability to C++. I’m surprised it’s not mentioned even once in the page.

  • hector@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    6 days ago

    This is cool in theory but this is yet another competing standard of static analysis.

    We got clang-tidy, CPPAnalyser, etc… etc…

    • mox@lemmy.sdf.orgOP
      link
      fedilink
      arrow-up
      6
      arrow-down
      6
      ·
      edit-2
      6 days ago

      this is yet another competing standard of static analysis.

      No, it isn’t.

      Those are linters. They might or might not discover problematic use of unsafe language features lurking in existing code.

      This proposal is a new iteration of the language and standard library. It would provide safe language features for preventing such problems existing in the first place.

      • thesmokingman@programming.dev
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        6 days ago

        Right now, we have to compile the compiler for this ourselves. Pardon my skepticism; I’m not sure this is mature enough.

        Edit: I’m talking about the project not the idea. Sean Baxter has shown up everywhere for awhile talking about this. I think his idea has a ton of maturity. I don’t know that the project itself has enough maturity to mainline yet.

        • mox@lemmy.sdf.orgOP
          link
          fedilink
          arrow-up
          7
          arrow-down
          5
          ·
          6 days ago

          That’s fair. I think the last word in the URL does a good job of representing the implementation’s claimed level of maturity:

          draft

          :)

          • thesmokingman@programming.dev
            link
            fedilink
            arrow-up
            4
            arrow-down
            8
            ·
            6 days ago

            You said

            This proposal is a new iteration of the language and standard library. It would provide safe language features for preventing such problems existing in the first place.

            Either it’s a draft or it’s a new iteration of the language. Can’t be both.

            • mox@lemmy.sdf.orgOP
              link
              fedilink
              arrow-up
              9
              arrow-down
              5
              ·
              edit-2
              6 days ago

              Either it’s a draft or it’s a new iteration of the language. Can’t be both.

              It’s a draft of a proposal for a new iteration. Is that so difficult to understand?

                • FizzyOrange@programming.dev
                  link
                  fedilink
                  arrow-up
                  8
                  ·
                  6 days ago

                  He never said it was an Internet Draft. Try actually reading. It might help you in the future when you are discussing things.

                • mox@lemmy.sdf.orgOP
                  link
                  fedilink
                  arrow-up
                  8
                  ·
                  6 days ago

                  https://en.wikipedia.org/wiki/Internet_Draft

                  I think it’s pretty clear that IETF drafts are not what author meant when he wrote draft, and I’m pretty sure the IETF doesn’t have much to do with C++ standards.

                  Are you under the impression that there is no other sense of the word?

                  It might help you in the future when you are discussing things like drafts, specifications, and proposals.

                  As it turns out, I have done more than a little of that. Thankfully, I don’t usually see such condescending remarks in the process, nor such insistence on misunderstanding. Good luck to you, too.

            • 4am@lemm.ee
              link
              fedilink
              arrow-up
              2
              arrow-down
              6
              ·
              6 days ago

              This is “It’s just a THEORY” but for programmers