You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most Result return values use an i32 (an OSStatus) as their error variant. This is not ideal for a couple of reasons
i32 doesn't implement std::error::Error so Result values from core midi aren't compatible with a lot of common error handling patterns (e.g. anyhow)
the OS status return value doesn't always imply an error - a zero indicates success. So using this as the error type just feels a little semantically strange.
The text was updated successfully, but these errors were encountered:
Improve error types
Most
Result
return values use ani32
(anOSStatus
) as their error variant. This is not ideal for a couple of reasonsi32
doesn't implementstd::error::Error
soResult
values from core midi aren't compatible with a lot of common error handling patterns (e.g. anyhow)The text was updated successfully, but these errors were encountered: