libhal / SJSU-Dev2

Firmware platform written by San Jose State University for building application for embedded systems
Apache License 2.0
42 stars 63 forks source link

[WIP] Make all interfaces adopt Returns<> #1363

Closed kammce closed 4 years ago

kammce commented 4 years ago

It can not be determined that that any particular implementation of a hardware driver will or will not throw an error, thus every interface must be equip to return an error if need be.

kammce commented 4 years ago

It was decided to transition to exception handling rather than return error types. For large enough projects exceptions are smaller in code size and faster when exceptions are not running.