3 ms·
> the kernel is a service that end user applications interact with through an API. My thinking is that that API has to distinguish between many strictly define
by duckerude 4y ago
> the kernel is a service that end user applications interact with through an API.
My thinking is that that API has to distinguish between many strictly defined error codes, while anyhow homogenizes errors and focuses on human-readable information. How would you tell whether an anyhow::Error means EINVAL or EFAULT?
It's the same fundamental design tradeoff that makes it unsuitable for Rust libraries, even if anyhow wouldn't be visible in the public API.
> The uuid crate can be modified to support the kernel infrastructure as its backend
Fair enough, using a modified version seems reasonable.