Hacker News new | ask | show | jobs
by solidsnack9000 1172 days ago
"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.

2 comments

Rust seems to do fine with ZSTs somehow.
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... .
>negative-length

nervous Minkowski laughter