Re:Rustc: Add do yeet expressions to allow experimentation i...
by blindseer on Friday May 06, 2022 @12:28AM
(#31281321)
And `unsafe` with `yolo`.
[ Parent
| on HN ]
Re:Rustc: Add do yeet expressions to allow experimentation i...
by collegeburner on Friday May 06, 2022 @12:41AM
(#31281388)
`sus` fits with unsafe better I think.
Re:Rustc: Add do yeet expressions to allow experimentation i...
by Tuna-Fish on Friday May 06, 2022 @09:05AM
(#31284634)
Currently the term "unsafe" is overloaded, as both the keyword used to mark definitions of things that require manual verification, and as the keyword used to mark a block to acknowledge that such verification has been done.
The correct approach is obviously to separate these two terms, and use "sus" to mark items that require verification, and "yolo" to mark that such verification has been done. Or:
sus fn dangerous() { ... }
yolo { dangerous() } // can only call dangerous inside a yolo block
Re:Rustc: Add do yeet expressions to allow experimentation i...
by blindseer on Friday May 06, 2022 @11:45AM
(#31286527)
pog