3 ms·
That's what I mean with "change of perspective". POD structs are entirely fine if a library API is designed from the ground up for them. It only becomes a probl
by flohofwoe 5y ago
That's what I mean with "change of perspective". POD structs are entirely fine if a library API is designed from the ground up for them. It only becomes a problem when trying to write C++ code in C (or Zig in this case).
- ncmncm 5y agoPOD structs are fine if your wants are limited. Most usually, they are more error-prone and hard to use, and often slower. Limiting yourself to PODs is, first and foremost, limiting yourself. There are reasons why, in the highest-paid programming jobs, you would be laughed from the room if you suggested coding something in C. Dull knives, cracked pots, and filthy ingredients make a bad stew.