Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lostdog
· 4y ago · 0 comments
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
Comments
[–]
bear24rw
4y ago
SerenityOS uses this pattern heavily:
https://github.com/SerenityOS/serenity/blob/master/AK/Try.h
[–]
dureuill
4y ago
Yes we've been using this. Unfortunately it is not standard and iiuc msvc has no equivalent?