> "unsafe forbidden" (GH tag)
Unrelated to this project, but I dislike the obsession of "unsafe" within the rust community.
Sometimes I need to dereference a raw pointer (rare!).
Sometimes I actually know what I'm doing (very rare!!).
Sometimes I rigorously tested my code (exceptionally rare!!!).
When I see people making PRs (to e.g. Actix) to change unsafe code to safe code in an API the user *never* sees, which results in a performance penalty, just for the sake of not using the word "unsafe" in the code, I get mad. I totally understood Nikolay's reaction back then. Random people opened PRs and flamed him without knowing anything about the internals and the consequences.
The unsafe keyword means that I know what I'm doing. Just trust me for once, please.
Edit: if you actually want to know what you're doing too, I recommend you writing some linked lists. I hate linked lists with passion, I think they are a bad data structure and you should use Vectors 90% of the time and VecDeque the other 10% of cases. But they help you to understand what you're spending your electricity on.
Unrelated to this project, but I dislike the obsession of "unsafe" within the rust community.
Sometimes I need to dereference a raw pointer (rare!).
Sometimes I actually know what I'm doing (very rare!!).
Sometimes I rigorously tested my code (exceptionally rare!!!).
When I see people making PRs (to e.g. Actix) to change unsafe code to safe code in an API the user *never* sees, which results in a performance penalty, just for the sake of not using the word "unsafe" in the code, I get mad. I totally understood Nikolay's reaction back then. Random people opened PRs and flamed him without knowing anything about the internals and the consequences.
The unsafe keyword means that I know what I'm doing. Just trust me for once, please.
Edit: if you actually want to know what you're doing too, I recommend you writing some linked lists. I hate linked lists with passion, I think they are a bad data structure and you should use Vectors 90% of the time and VecDeque the other 10% of cases. But they help you to understand what you're spending your electricity on.