News for hackers. Stuff that matters.
Re:Asterinas: OS kernel written in Rust and providing Linux-... by LinXitoW on Wednesday October 16, 2024 @08:33AM (#41858336)
If I ask my repository (backed by an sql db) to get a user, there might be 3 different scenarios I'm interested in:

- Technical problem (like connection problems) means I don't know what's in the db

- No technical problem, but no user entry

- No technical problem, and a user entry

You need the Result for the technical problems, and the Option for whether there's a user entry or not.

Re:Asterinas: OS kernel written in Rust and providing Linux-... by GoblinSlayer on Wednesday October 16, 2024 @11:07AM (#41859945)
Surely Result is supposed to hold both system errors and business errors.