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

Mixed mode arithmetic #8

Open
MarcusRainbow opened this issue Dec 11, 2019 · 0 comments
Open

Mixed mode arithmetic #8

MarcusRainbow opened this issue Dec 11, 2019 · 0 comments

Comments

@MarcusRainbow
Copy link
Owner

Python has no pride at all. You can write a mixture of integers, floats and even complex numbers in the same arithmetic expression. Rust is far less forgiving.

To support whatever Python code is likely to appear, we need to automatically add Rust casts to different numeric types. Arguably this could be controllable with an option, as mixed mode arithmetic is bad, and we may want to flag up usage rather than acquiescing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant