logoalt Hacker News

Panzerschrektoday at 5:50 AM1 replyview on HN

Just use compiler option -std=c++20 and use std::span. Don't try reinventing it in C.


Replies

lelanthrantoday at 10:14 AM

If someone needs more than C provides, why on earth would they choose C++?

No rational person is going to want to have to deal with 10x the number of foot guns.

Literally anything when moving from C is better than C++.

show 1 reply