Hacker News new | ask | show | jobs
by lostdog 1405 days ago
If compound statements every get standardized then you could write a TRY macro that worked pretty similarly.

https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html

2 comments

Yes we've been using this. Unfortunately it is not standard and iiuc msvc has no equivalent?