logoalt Hacker News

creatolast Monday at 4:01 AM3 repliesview on HN

This is actually C and C++ has not done something similar AFAIK.


Replies

hn_go_brrrrrlast Monday at 8:35 AM

Fortunately the major compiler vendors all have. Routing around the standards committee is getting more and more common.

TuxSHlast Monday at 11:22 AM

C++23 does have std::unreachable (as a function), and its counterpart [[assume(expr)]]