Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Yes agree, I need unsafe super rarely, and often it’s just for small optimizations (like std::mem::transmute::(kind) where SyntaxKind is an enum with #[repr(u16)]).
But I guess it depends on what you’re doing exactly though (the higher-level, the less unsafe you need).
Yes agree, I need
unsafe
super rarely, and often it’s just for small optimizations (likestd::mem::transmute::(kind)
whereSyntaxKind
is an enum with#[repr(u16)]
).But I guess it depends on what you’re doing exactly though (the higher-level, the less unsafe you need).