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

Add Additional number types (and half-assed type inference) #5

Merged
merged 9 commits into from
Jan 1, 2024

Conversation

doonv
Copy link
Owner

@doonv doonv commented Dec 29, 2023

Objective

Fix #2.

Solution

Replace the f64 with a Number enum which allows several number types to be added.
As for type inference I created the Number::Float(f64) and Number::Integer(i128) types which are generic types which then get downcasted when they are used with a known type.

@doonv doonv added C-Enhancement New feature or request A-Builtin-Parser This is related to the Built-in Parser labels Dec 29, 2023
@doonv doonv self-assigned this Dec 29, 2023
@doonv doonv merged commit 759b484 into master Jan 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Builtin-Parser This is related to the Built-in Parser C-Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional number types (and type inference)
1 participant