Skip to content
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

Rewrite operator overloads using promotion rules #179

Closed
mlubin opened this issue May 13, 2014 · 4 comments
Closed

Rewrite operator overloads using promotion rules #179

mlubin opened this issue May 13, 2014 · 4 comments

Comments

@mlubin
Copy link
Member

mlubin commented May 13, 2014

It seems like we could cut down a lot of the operator overloading code and make Julia's generic operations work correctly by implementing promotion rules.

Ref JuliaLang/julia#6672

@IainNZ
Copy link
Collaborator

IainNZ commented May 13, 2014

That sounds like it'd be a good thing - can you give an example? I'm having trouble thinking of what it would look like

@joehuchette
Copy link
Contributor

It would be very nice if this works; that goes triply so for SDP operator code.

@mlubin
Copy link
Member Author

mlubin commented Oct 2, 2015

Is this still useful? Did we come to the conclusion that promotion rules don't quite work for the case where a*b has a different type from a+b?

@mlubin
Copy link
Member Author

mlubin commented Jun 4, 2018

Not much going on here. We'll reconsider if we find a new reason to refactor the operator overloads.

@mlubin mlubin closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants