4 comments

  • p1necone12 minutes ago
    One simple but non obvious (at least to me) trick when implementing tagged unions: put the union discriminator&#x2F;tag at the <i>end</i>, not the beginning - that way a pointer to a union is <i>also</i> a pointer to the value, no need to increment the pointer to point past the tag after discriminating.
  • gnabgib1 day ago
    (2025) And about CopperLang (203 points, 3 days ago, 120 comments) <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50308754">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50308754</a>
  • direwolf2040 minutes ago
    i read Onion Types