• @hark@lemmy.world
      link
      fedilink
      522 days ago

      C is almost the perfect subset for me, but then I miss templates (almost exclusively for defining generic data structures) and automatic cleanup. That’s why I’m so interested in Zig with its comptime and defer features.

      • @jas0n@lemmy.world
        cake
        link
        fedilink
        222 days ago

        You may also like Odin if you haven’t already started zig. It’s less of a learning curve and feels more like what c should have always been. It has defer and simple generics, but doesn’t have the magic of comptime.

    • @uis@lemm.ee
      link
      fedilink
      322 days ago

      Damm, C23 has a lot of changes. Some of them are really good, some of them I strongly dislike(keyword auto, addition of nullptr).