This contains two main parts: - Exception, imo this represents the “right” approach to an error trait object - a set of macros to get ok wrapping / “throwing” function syntax
-
-
Prikaži ovu nit
-
Importantly, Exception is built on std::error::Error. Unlike failure we don’t have a new trait everyone has to implement
Prikaži ovu nit -
Also, the Debug print for Exception prints the cause chain & stack trace. You can just make fn main throw and you’ll get a good print out
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
so this adopts basically exactly swift's error-handling design? (but without the ABI support)
-
I don’t know
- Još 9 drugih odgovora
Novi razgovor -
-
-
This looks awesome. Curious about the compile-time overhead of using a proc macro attribute on every function though.
-
Yea fair question, would be interested to get data
Kraj razgovora
Novi razgovor -
-
-
YESSSSS, I'm so excited for this!!!!!
-
The #[throws] attribute
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.