3 ms·
If I were to go back and do it again I'd propose to rename unsafe blocks to something like `promise`, to indicate that the programmer is promising to uphold som
by kibwen 5y ago
If I were to go back and do it again I'd propose to rename unsafe blocks to something like `promise`, to indicate that the programmer is promising to uphold some invariants (the keyword on function declarations would still be `unsafe`). (Of course the idea of a "promise" means something different in JavaScript land, but I'm not worried about confusion there.)
- ChadNauseam 5y agoWhile we're at it, I also would have preferred `&uniq` over `&mut`.
- selfmodruntime 5y agoAnd from the great Steve Klabnik himself: StrBuf instead of „String“
- gpm 5y agoI still like `trust_me`, maybe a bit unprofessional in some contexts though.