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

Improve interactions between integers and floats #3

Open
oppiliappan opened this issue Oct 12, 2020 · 0 comments
Open

Improve interactions between integers and floats #3

oppiliappan opened this issue Oct 12, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@oppiliappan
Copy link
Member

Scheme numbers are tricky, see R5RS. The generic LispNumber type does not encompass all numeric types (nor does the parser), but it attempts to define interactions between floating and integer type numbers correct. It has to be redefined to adhere to the following rules:

F -> I -> F  -- implicit cast
I -> F -> F  -- implicit cast
I -> I -> I  -- no cast
F -> F -> F -- no cast
@oppiliappan oppiliappan added the good first issue Good for newcomers label Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant