▲ 26 ▼ Arguing about arguments (steveklabnik.com) submitted 1 month ago by codeinabox@programming.dev to c/rust@programming.dev 19 comments fedilink hide all child comments
[–] Varesti@lemmy.zip 1 point 1 month ago (6 children) YES! permalink fedilink source parent hideshow 6 child comments replies: [–] Valmond@lemmy.dbzer0.com 5 points 1 month ago (3 children) Is this the 5 minute argument? permalink fedilink source parent hideshow 3 child comments replies: [–] Varesti@lemmy.zip 5 points 1 month ago (2 children) Well it WAS the 5 second argument. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 2 points 1 month ago (1 child) Is it when you pick up an argument someone dropped? permalink fedilink source parent hideshow 1 child comment replies: [–] Varesti@lemmy.zip 3 points 1 month ago permalink fedilink source parent [–] sukhmel@programming.dev 2 points 1 month ago I don't know, it looks like the amount of issues is way higher than improvement in comfort. Beside, they mentioned a lot of corner cases that would definitely show up and become a problem I've been using C++ for quite some time, and it also had some talks about having named parameters, but it only helps in some places and hinders in most, imo. I feel like in Rust you may use a struct as parameter containing all of function parameteres where you really want the names permalink fedilink source parent [–] Zykino@programming.dev 2 points 1 month ago Maybe permalink fedilink source parent
[–] Valmond@lemmy.dbzer0.com 5 points 1 month ago (3 children) Is this the 5 minute argument? permalink fedilink source parent hideshow 3 child comments replies: [–] Varesti@lemmy.zip 5 points 1 month ago (2 children) Well it WAS the 5 second argument. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 2 points 1 month ago (1 child) Is it when you pick up an argument someone dropped? permalink fedilink source parent hideshow 1 child comment replies: [–] Varesti@lemmy.zip 3 points 1 month ago permalink fedilink source parent
[–] Varesti@lemmy.zip 5 points 1 month ago (2 children) Well it WAS the 5 second argument. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 2 points 1 month ago (1 child) Is it when you pick up an argument someone dropped? permalink fedilink source parent hideshow 1 child comment replies: [–] Varesti@lemmy.zip 3 points 1 month ago permalink fedilink source parent
[–] sukhmel@programming.dev 2 points 1 month ago (1 child) Is it when you pick up an argument someone dropped? permalink fedilink source parent hideshow 1 child comment replies: [–] Varesti@lemmy.zip 3 points 1 month ago permalink fedilink source parent
[–] sukhmel@programming.dev 2 points 1 month ago I don't know, it looks like the amount of issues is way higher than improvement in comfort. Beside, they mentioned a lot of corner cases that would definitely show up and become a problem I've been using C++ for quite some time, and it also had some talks about having named parameters, but it only helps in some places and hinders in most, imo. I feel like in Rust you may use a struct as parameter containing all of function parameteres where you really want the names permalink fedilink source parent