logoalt Hacker News

Prydownyesterday at 11:48 PM1 replyview on HN

Constant headache in C++ with `std::vector` element references. Zig's explicit stability here is a welcome relief for data structures.


Replies

afdbcreidtoday at 1:35 AM

It seems you misunderstood. It's not an explicit stability guarantee (such things is not possible), it's a debugging helper to crash the program more easily when it happens, requiring you to annotate the code.