What is Nostr?
Greg /
npub122k…dp80
2024-01-16 20:08:13

Greg on Nostr: One pattern I find in my #rust code, or at least a subconscious behavior I have, is ...

One pattern I find in my #rust code, or at least a subconscious behavior I have, is not using lifetime annotations much. I'm not sure if that is good or bad. I have written lots of C and C++, so maybe I have a habit of moving/borrowing memory, and keeping a mental model of a lifetime already, without annotations. I wonder if my code could be better, though, if I leaned more on explicit lifetimes, and if better means any of "more efficient" or "more readable." #softwaredevelopment
Author Public Key
npub122khkty8jumvtwtx4fd3whfdz3tr4d4pvurc5lyaxh6zzzpl3ezqd6dp80