|
|
|
|
|
by tasn
1577 days ago
|
|
This is something I thought about a lot before switching to Rust at Svix[0]. What I came to realize though, that there are no "casts to any and move on", but rather there are silencing real bugs and praying you won't hit them. Almost every time I've ever tried to silence the type checker (in any other language) it resulted in a bug. Does it make you slower? Definitely at times, but it's mostly OK, and the code is pretty damn clean. You can check out our repo to see how it looks[1]. Edit: we don't use Actix, we use Axum, but the same holds for Actix too. [0] https://www.svix.com [1] https://github.com/svix/svix-webhooks |
|
[1]: https://github.com/integer32llc/rust-playground/pull/777