Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dan00
3 months ago
|
parent
|
context
|
favorite
| on:
Banned C++ features in Chromium
Looking at code, it‘s easier to spot the missing check for an error code, than a not catched exceptions.
Also error codes are part of the signature of a function, which exceptions aren‘t.
drysine
3 months ago
[–]
If you need to wrap each call in try/catch, it's better to use return codes in some form or rethink the approach.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Also error codes are part of the signature of a function, which exceptions aren‘t.