AVERAGE cypherpunk on Nostr: "A custom error type has the advantage of making all possible errors explicit so ...
"A custom error type has the advantage of making all possible errors explicit so readers can quickly identify what errors can happen. This saves other people (and yourself) enormous amounts of time when reviewing and refactoring code later."
https://v2.tauri.app/develop/calling-rust/#error-handlingPublished at
2024-07-02 03:04:44Event JSON
{
"id": "000005cbeeb08922854e8e919afd8a2f8b9195e136b0915bf6f3ef73dcfb4d16",
"pubkey": "d3d74124ddfb5bdc61b8f18d17c3335bbb4f8c71182a35ee27314a49a4eb7b1d",
"created_at": 1719882284,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"t",
"error"
],
[
"nonce",
"14603672391686730245",
"21"
]
],
"content": "\"A custom error type has the advantage of making all possible errors explicit so readers can quickly identify what errors can happen. This saves other people (and yourself) enormous amounts of time when reviewing and refactoring code later.\"\n\nhttps://v2.tauri.app/develop/calling-rust/#error-handling",
"sig": "13b05920a6e99f60c63ea9a0b6a48cf6025037ea9df8ca4d26abd4a4467d73007656d76c46ae74414612f4037ca8ce5caf151828a1fb946812d79e99bac8e960"
}