If I create an anonymous enum `Error1 | Error2` why couldn't the compiler just create an enum like
enum Anon {
Error1(Error1),
Error2(Error2)
}
?
If I create an anonymous enum `Error1 | Error2` why couldn't the compiler just create an enum like
enum Anon {
Error1(Error1),
Error2(Error2)
}
?
I wish Rust enums were just intersections of structs that could be defined ad-hoc, even without naming them. This would be amazing for defining Result types where you can set the error to Error1 | Error2.
I wish Rust enums were just intersections of structs that could be defined ad-hoc, even without naming them. This would be amazing for defining Result types where you can set the error to Error1 | Error2.
What makes this worse is that once countries put up the tariffs the US will have to negotiate with each country individually to remove them.
What makes this worse is that once countries put up the tariffs the US will have to negotiate with each country individually to remove them.
Do whatever you want, you aren't a revolutionary because you are building another build tool.
Do whatever you want, you aren't a revolutionary because you are building another build tool.
2. It's built in and is *the* standard. There are no choices you need to make for linters / formatters / build tools / package management.
I think that's really it. Doesn't sound like much but how many languages succeed at this?
2. It's built in and is *the* standard. There are no choices you need to make for linters / formatters / build tools / package management.
I think that's really it. Doesn't sound like much but how many languages succeed at this?