-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operator dispatch: T op 1.0
works, but 1.0 op T
doesn't
#19035
Labels
A-type-system
Area: Type system
Comments
japaric
pushed a commit
to japaric-archived/complex.rs
that referenced
this issue
Nov 17, 2014
Note that `3. + 4. * I` doesn't work. See rust-lang/rust#19035
Hmm. Yeah, I think we can make this work without too much difficulty, I kind of didn't realize it wouldn't work already, but I can see why it doesn't. It's (I believe) specific to the builtin types like int/float/etc. |
@nikomatsakis awesome! |
japaric
pushed a commit
to japaric/rust
that referenced
this issue
Dec 1, 2014
Closed
1 task
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Mar 25, 2015
Fixes rust-lang#22743. Fixes rust-lang#19035. Fixes rust-lang#22099. (Those all seem to be exactly the same scenario.)
lnicola
pushed a commit
to lnicola/rust
that referenced
this issue
Jan 27, 2025
Update outdated permissions section in the README.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STR
Given the proper (commutative)
Add
/Mul
implementations. (See this playpen link)Output
@nikomatsakis Could this work in the future? It would be great if could type
3. + 4. * I
instead ofI * 4. + 3.
, the former feels more natural.The text was updated successfully, but these errors were encountered: