News for hackers. Stuff that matters.
Re:The next circle of security hell by dwattttt on Monday November 23, 2026 @04:35PM (#50619698)
> just write "unsafe" once inside a function that you can call in 500 different places

It's usually the opposite. If you're being forced to write unsafe, odds are there's a crash bug about to appear (the word "forced" was very specifically chosen, I've been in both of these positions quite a few times).

And if you're not being forced to write unsafe, not writing it really is easier. Precedence of operations means that if you want to call a method/access a field of a raw pointer, it's a minimum of `(*a).` to reference it. A reference is just the `.`.

There are no comments on this comment yet.