Re:Tracking Trust with Rust in the Kernel
by baq on Friday September 19, 2025 @08:01AM
(#45300624)
I'm happily using this pattern in TS to wrap DB ids to avoid mistakenly passing e.g. user id to a function accepting a thing id or vice versa. Works very well and prevented a few close calls. I'd call it a type system feature, especially if you pack the id in a nominal type.
[ Parent
| on HN ]
There are no comments on this comment yet.