1067
C++ (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] ChaoticNeutralCzech@feddit.de 18 points 6 months ago

my comfortable little subset of C++

I also have one. I call it "C"

[-] hark@lemmy.world 5 points 6 months 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 2 points 6 months 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.

[-] grrgyle@slrpnk.net 4 points 6 months ago

This comment smells like unix

[-] uis@lemm.ee 3 points 6 months 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).

this post was submitted on 08 Jun 2024
1067 points (98.5% liked)

Programmer Humor

19817 readers
54 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS