Dirkjan Ochtman on Nostr: Hot take: `Option::iter()` and `into_iter()` and `Result::iter()` and ...
Hot take: `Option::iter()` and `into_iter()` and `Result::iter()` and `Result::into_iter()` should be deprecated. They are more likely to cause issues during refactoring and/or cause inexperienced users to write unclear code than they are helpful.
#rustlang
Published at
2024-05-16 07:54:22Event JSON
{
"id": "7862bd59eac242db162039999f3b78746ecf41c319c0a13dcafec8081e23e26a",
"pubkey": "f9569d26df3b9325292d5c1971af22d31572af0655403cfde731ebf055f3e3a2",
"created_at": 1715846062,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://hachyderm.io/users/djc/statuses/112449687530406786",
"activitypub"
]
],
"content": "Hot take: `Option::iter()` and `into_iter()` and `Result::iter()` and `Result::into_iter()` should be deprecated. They are more likely to cause issues during refactoring and/or cause inexperienced users to write unclear code than they are helpful.\n\n#rustlang",
"sig": "31ddbeeb9bdfd3206653aeddaf913045c8c79d1c5d38c6493690dc25ee4e5bfb9367b5d171c67ad0a5b2c364aac40c02c94da1100c032581cbbe00abc694040c"
}