Timothy Wolodzko on Nostr: Stages of using lifetimes in #rustlang: 1. Start with no lifetimes, 2. The compiler ...
Stages of using lifetimes in #rustlang:
1. Start with no lifetimes,
2. The compiler complains, so you put lifetimes everywhere,
3. It's so ugly that you simplify it, so it doesn't need any lifetimes anymore.
Published at
2024-05-26 18:17:30Event JSON
{
"id": "5c99ce7933bb1753806de4b0b72585276947ebd733553a0443423d47fd41af73",
"pubkey": "5b2de570887c99dd5d9e58de9194c96a722be713dd0a56efa92a485281b0948f",
"created_at": 1716747450,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://hachyderm.io/users/tymwol/statuses/112508760941106411",
"activitypub"
]
],
"content": "Stages of using lifetimes in #rustlang:\n1. Start with no lifetimes,\n2. The compiler complains, so you put lifetimes everywhere,\n3. It's so ugly that you simplify it, so it doesn't need any lifetimes anymore.",
"sig": "b6d9765c7c2631a9cd58d1d5598e09c3512e2d14276af238bdee837d7ef6c8a7607407439059cbbf1ef5049021654a09d20a24b2673bdd57388c26bd1c981ebd"
}