Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I've had an language naming epiphany

I've had an language naming epiphany

Scheduled Pinned Locked Moved The Lounge
c++wpf
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dean Roddey
    wrote on last edited by
    #1

    From another thread I realized that it's now time to rename C++ to "Templates with C". It started out as "C with Classes" then "C++", and now "Templates with C". Before long it's going to become "Templates without C", then it'll just be "Templates, B$tch". A string constant in the "Templates without C" language:

    std::char(std::char(std::char(std::char)))

    Explorans limites defectum

    C 1 2 Replies Last reply
    0
    • D Dean Roddey

      From another thread I realized that it's now time to rename C++ to "Templates with C". It started out as "C with Classes" then "C++", and now "Templates with C". Before long it's going to become "Templates without C", then it'll just be "Templates, B$tch". A string constant in the "Templates without C" language:

      std::char(std::char(std::char(std::char)))

      Explorans limites defectum

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      C programmers just do it all with macros. and they like it.

      L 1 Reply Last reply
      0
      • C Chris Losinger

        C programmers just do it all with macros. and they like it.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        ... just yesterday was looking at some code, forget what it was for but thought to myself: if only c# had paramterised macros with conditional compilation, that would be perfect here. sigh, many years on still miss em.

        Message Signature (Click to edit ->)

        P D 2 Replies Last reply
        0
        • L Lost User

          ... just yesterday was looking at some code, forget what it was for but thought to myself: if only c# had paramterised macros with conditional compilation, that would be perfect here. sigh, many years on still miss em.

          Message Signature (Click to edit ->)

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          With care, one can pass C# through a standard C pre-processor. I do all the time.

          1 Reply Last reply
          0
          • L Lost User

            ... just yesterday was looking at some code, forget what it was for but thought to myself: if only c# had paramterised macros with conditional compilation, that would be perfect here. sigh, many years on still miss em.

            Message Signature (Click to edit ->)

            D Offline
            D Offline
            Dean Roddey
            wrote on last edited by
            #5

            The downside of C/C++ macros is that there is no specific syntax to invoke them. So they can just randomly rename things in your code because you happened to name something the same as some macro that you never even knew existed. I'm sure most C++ programmers have had some scenario, if they are interacting with system APIs, where they get an error saying that XYZ doesn't exist but you don't have anything in your entire code base named XYZ. And it turns out there's a macro that translates ABC to XYZ, and you named something ABC.

            Explorans limites defectum

            1 Reply Last reply
            0
            • D Dean Roddey

              From another thread I realized that it's now time to rename C++ to "Templates with C". It started out as "C with Classes" then "C++", and now "Templates with C". Before long it's going to become "Templates without C", then it'll just be "Templates, B$tch". A string constant in the "Templates without C" language:

              std::char(std::char(std::char(std::char)))

              Explorans limites defectum

              1 Offline
              1 Offline
              11917640 Member
              wrote on last edited by
              #6

              Back to C. ASAP. No template template parameters. No traits. No SFINAE and RAII. Just C, please!

              D 1 Reply Last reply
              0
              • 1 11917640 Member

                Back to C. ASAP. No template template parameters. No traits. No SFINAE and RAII. Just C, please!

                D Offline
                D Offline
                Dean Roddey
                wrote on last edited by
                #7

                I wouldn't go that far. You don't have any to use that stuff while still getting a lot of benefits from C++ over C. My system has a fairly minimal set of templates, just where they really add something important. RAII (though I think the concept is much broader and call them Janitors) I use a lot. They are one of the best things about C++. I have janitors for lots of things, not just allocating and deleting things, but setting or changing things on a scoped basis and such.

                Explorans limites defectum

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups