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 format to Integral types, similar to Double.format and SML's Int.fmt functions. #110

Open
crusso opened this issue Jul 2, 2020 · 2 comments

Comments

@crusso
Copy link
Contributor

crusso commented Jul 2, 2020

Most of this is already implemented in the prelude so its just a matter of exposing it properly, I think.

@ehoogerbeets
Copy link

No, please DO NOT add that! It will be English only that way. Implement a separate formatter that formats based on the locale and make posix/C or English/US the default locale for now. Now's your chance to make an international friendly language instead of falling into the same old trap that all previous programming languages have...

@rossberg
Copy link
Contributor

@ehoogerbeets, this is supposed to generate Motoko number syntax, so language does not affect it. There is plenty of room to add i18n support to the platform, but that's different functionality.

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

3 participants