Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
solidsnack9000
· 3y ago · 0 comments
"Looking forward, marijuana legalization will surely beget notions such as fractional-, imaginary-, and negative-length objects, each with as much potential for mayhem as zero-length objects."
It's a funny thing to say.
Comments
[–]
firstlink
3y ago
Rust seems to do fine with ZSTs somehow.
[–]
kibwen
3y ago
ZSTs work splendidly in Safe Rust, but you do need to consider them if you're writing unsafe generic code. Here's the relevant section of the Rustonomicon:
https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-siz...
.
[–]
garbagecoder
3y ago
>negative-length
nervous Minkowski laughter