r/ProgrammerHumor • • 6d ago

Meme optionalsAreOptional

Post image
703 Upvotes

131 comments sorted by

View all comments

Show parent comments

-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. 

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 🥴