Dusty Pomerleau on Nostr: impl Trait in return position is super useful, but impl Trait in argument position ...
impl Trait in return position is super useful, but impl Trait in argument position seems like it saves a few keystrokes at the cost of totally confusing every newcomer to #RustLang.
I think there is a big difference between teaching people that impl Trait can only be used in certain places, versus teaching them that impl Trait has different meanings in different places.
Published at
2024-07-02 05:40:30Event JSON
{
"id": "95df1760600787dbe5d669c9535a6759be2a5dc3d993794816d1ad8b485f6f7e",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1719898830,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/112715289734191468",
"activitypub"
]
],
"content": "impl Trait in return position is super useful, but impl Trait in argument position seems like it saves a few keystrokes at the cost of totally confusing every newcomer to #RustLang.\n\nI think there is a big difference between teaching people that impl Trait can only be used in certain places, versus teaching them that impl Trait has different meanings in different places.",
"sig": "2abf4fa92166bfbda04768d071d8904ffaab08d0c7693118f1f54e3fa858aa0dd349fde1a6f12d644b372870b7128ea3e71c7888f629de19622df401989ab53e"
}