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

Separate thousands with an underscore when generating Rust #85

Merged
merged 2 commits into from
Jan 13, 2019

Conversation

gferon
Copy link
Contributor

@gferon gferon commented Jan 12, 2019

I'm not sure what's best: try to parse the string value to an integer and fail gracefully, or test if the node.type.name is in an integer (so u8, u16, etc.). I chose here to parse the value, which is more future proof IMHO.

Resolves #84

Signed-off-by: Gabriel Feron <feron.gabriel@gmail.com>
Copy link
Collaborator

@boxdot boxdot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing. I have a minor proposal.

generator/generators/RustGenerator.py Show resolved Hide resolved
tests/generators/test_rust_generator.py Outdated Show resolved Hide resolved
Signed-off-by: Gabriel Feron <feron.gabriel@gmail.com>
@boxdot boxdot merged commit b9c998a into heremaps:master Jan 13, 2019
@gferon gferon deleted the thousands-separator branch March 16, 2019 08:53
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

Successfully merging this pull request may close these issues.

2 participants