‹ BackHN Continuity

Thread

Type Punning in C and C++

36 points · 23 comments · ingve

  1. antiloper · · focus · HN ↗
    > The C vs C++ distinction here is genuinely treacherous

    What's so genuine about this?

    1. tialaramex · · focus · HN ↗
      Despite the fact they're two different languages, people are often taught as though it's basically just a subset relationship and then they carry this through into the actual software they write.

      Because neither of these are memory safe languages, you are required to ensure you've made no mistakes or else anything might happen.

    2. ndr · · focus · HN ↗
      It continues with

      > and most blog posts on the topic get it wrong.

      This smells like Claudism/LLMish.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.