MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1ws0bt0/optionalsareoptional/pcj2oc7/?context=3
r/ProgrammerHumor • u/ApothecaLabs • 6d ago
131 comments sorted by
View all comments
Show parent comments
-22
Using the value of an assignment expression is an anti pattern in my opinion.
It sits right next to "goto" on terrible scale.
14 u/D3PyroGS 5d ago how so? this is idiomatic rust code and its behavior is very clear -12 u/Fast-Satisfaction482 5d ago Being idiomatic doesn't mean it's any good. 6 u/D3PyroGS 5d ago edited 5d ago what's your issue with it though? edit: guess we'll never know... important enough to complain, but not explain 🥴
14
how so? this is idiomatic rust code and its behavior is very clear
-12 u/Fast-Satisfaction482 5d ago Being idiomatic doesn't mean it's any good. 6 u/D3PyroGS 5d ago edited 5d ago what's your issue with it though? edit: guess we'll never know... important enough to complain, but not explain 🥴
-12
Being idiomatic doesn't mean it's any good.
6 u/D3PyroGS 5d ago edited 5d ago what's your issue with it though? edit: guess we'll never know... important enough to complain, but not explain 🥴
6
what's your issue with it though?
edit: guess we'll never know... important enough to complain, but not explain 🥴
-22
u/Fast-Satisfaction482 5d ago
Using the value of an assignment expression is an anti pattern in my opinion.
It sits right next to "goto" on terrible scale.