this post was submitted on 19 Jun 2023
5 points (85.7% liked)

C++

1783 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
 

Although throw() has been deprecated for a while now, I thought this was an interesting bit of history regarding Microsoft's compiler.

top 1 comments
sorted by: hot top controversial new old
[–] jormaig 1 points 1 year ago

Why didn't they follow the way Java does it by forcing you to specify all possible throws of a function? Is it because it's too verbose?

Or rather, why isn't nothrow the default unless specified that a function can throw?