logoalt Hacker News

Panzerschrekyesterday at 6:41 PM1 replyview on HN

You can use some arena implementation in C++ too. But only when you need such an approach. If you don't care - just use std::string, std::vector or something similar.


Replies

eskayesterday at 6:46 PM

The C++ standard library interface is broken regarding its abstraction of allocation (according to its authors). Therefore you in fact can’t just use arenas in C++ without giving up on large parts of its standard library and becoming incompatible with other code. The languages whose users you call strange don’t have this issue.

show 2 replies