Y
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
bear24rw
1405 days ago
SerenityOS uses this pattern heavily:
https://github.com/SerenityOS/serenity/blob/master/AK/Try.h
link
dureuill
1405 days ago
Yes we've been using this. Unfortunately it is not standard and iiuc msvc has no equivalent?
link