Uh oh!
There was an error while loading. Please reload this page.
Added Mul for ~str - #7937
Conversation
MaikKlein
commented
Jul 21, 2013
making use of .repeat now |
huonw
commented
Jul 21, 2013
This should implement it on |
bstrie
commented
Jul 21, 2013
I'd like one of the main developers to comment on this before anyone approves it. Operator overloads can be a contentious subject. |
brson
commented
Jul 21, 2013
I'm not in favor of doing this. For me multiplying strings crosses the too-clever line. |
brendanzab
commented
Jul 21, 2013
|
bstrie
commented
Jul 22, 2013
I'm going to close this, as brson disapproves and I think Rust's general policy is that operator overloads should only be provided for common operations (which imo string repeating is not). @MaikKlein, feel free to open an issue rather than a PR if you wish to discuss it further. |
…shearth Remove rustfmt::skip attribute from register_plugins function r? `@Manishearth` since you added this in rust-lang#540 😄 changelog: none
You can now do:
~"a" * 10 // ~"aaaaaaaaaa"