Reason #18723 why I hate Actix and think the Rust community really should abandon ship on it and work on alternatives like warp, tower, gotham or rocket https://twitter.com/whitequark/status/1217945196400447488 …
-
-
was the issue here that a public function is not marked unsafe, but contained `unsafe` blocks, but doesn't guarantee the invariants those blocks rely on? I'm still really unsure what forces a function to be marked unsafe
-
It was archived, you can see for yourself. http://web.archive.org/web/20200116231317/https://github.com/actix/actix-net/issues/83 … A function should be marked `unsafe` whenever it has invariants that cannot be upheld by the compiler. Whether that is public API or not is irrelevant, requiring `unsafe` to call a function like that is critical
- 14 more replies
New conversation -
-
-
It's really frustrating to see. I continue to think `unsafe` was the wrong term. It's about upholding a contract with the compiler.
-
`mut` is more wrong than `unsafe` IMO. Either way they both get the point across well enough
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.