@rustlang is there not an idiomatic way of making a series of flags which can be anded/ored together without pulling in a crate or spending all day writing operator overloads for a custom type?
-
-
-
Replying to @rustlang @IanKronquist
“Pull in a crate” is very usual for rust
1 reply 0 retweets 1 like -
Replying to @rustlang
It’s pretty basic functionality to be forced to rely on external code for.
1 reply 0 retweets 0 likes -
Replying to @IanKronquist
Not all programs use this kind of thing. What’s basic or not depends on the kind of software you’re building.
1 reply 0 retweets 0 likes -
Replying to @rustlang @IanKronquist
Also, it’s not always “external” exactly; for example, https://crates.io/crates/bitflags is provided by the library team, even though it’s not part of the standard library
1 reply 0 retweets 0 likes
Replying to @rustlang @IanKronquist
Rust tends towards a minimal standard library. It’s a choice, and there are valid reasons to go the other way, but it’s the choice we’ve made.
3:17 PM - 10 Mar 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.