apparently this trick has fallen out of rust programmer folklore so PSA rust allows you to delay initialization of variables, and even Conditionally Initialize them

(it statically prevents you from messing up and will dynamically track whether they were initialized for cleanup)

this allows you to write things like this:

github.com/Gankra/socc-pair/bl

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!