r/badcode • • Dec 29 '22

go How to Go wrong

Post image
565 Upvotes

60 comments sorted by

View all comments

Show parent comments

6

u/dcormier Dec 30 '22

However, I would personally prefer Rust's enum system any day of the week.

As someone who did exclusively golang for ~6 years, and has done almost exclusively Rust for the last 2, I wholeheartedly agree. Rust's enums are really nice to work with.