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

Underscore as thousands separator #1489

Open
baryluk opened this issue Feb 22, 2021 · 6 comments
Open

Underscore as thousands separator #1489

baryluk opened this issue Feb 22, 2021 · 6 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. needs:value-proposition To unblock: needs clearer justification, review of benefits vs costs

Comments

@baryluk
Copy link

baryluk commented Feb 22, 2021

commodity 1_000.00 PLN

would be nice to have. At least for inputs, but also for outputs.

@baryluk baryluk added the A-WISH Some kind of improvement request, hare-brained proposal, or plea. label Feb 22, 2021
@simonmichael simonmichael changed the title Underscore as thousends separator Underscore as thousands separator Mar 7, 2021
@simonmichael simonmichael added the journal The journal file format, and its features. label Mar 7, 2021
@simonmichael
Copy link
Owner

@baryluk, we researched this a little and couldn't find any country that uses this convention. Do you know who uses it, or is it just a notation you like ?

@adept
Copy link
Collaborator

adept commented Mar 14, 2021

@simonmichael ocaml allows underscores in numeric literals (https://caml.inria.fr/pub/docs/manual-ocaml/lex.html), so it is often used as a convenient separator in source code (let magic_number = 1_000_000). Given ocaml's pedigree, maybe it is something that exists in France?

@baryluk
Copy link
Author

baryluk commented Mar 17, 2021

@baryluk, we researched this a little and couldn't find any country that uses this convention. Do you know who uses it, or is it just a notation you like ?

Just a notation I like and prefer. It is relatively country-neutral, and is cleaner than using other separators. As a person using quite a bit of D programming language, which had this feature for 15 years, I got acustomed for it. Afaik Go and C++ also now supports it.

@Xitian9
Copy link
Collaborator

Xitian9 commented May 3, 2021

GHC has also supported this notation since 8.6.1: https://typeclasses.com/ghc/numeric-underscores

@ShrykeWindgrace
Copy link

ShrykeWindgrace commented Sep 9, 2021

@simonmichael ocaml allows underscores in numeric literals (https://caml.inria.fr/pub/docs/manual-ocaml/lex.html), so it is often used as a convenient separator in source code (let magic_number = 1_000_000). Given ocaml's pedigree, maybe it is something that exists in France?

In France - no, it does not exist here.

@simonmichael
Copy link
Owner

We're discussing this again in chat, but I don't think we should add it without more motivation, since every added feature has a cost. Some examples of it used for accounting/data-tracking-type things in the wild could help.

@simonmichael simonmichael added the needs:value-proposition To unblock: needs clearer justification, review of benefits vs costs label Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. needs:value-proposition To unblock: needs clearer justification, review of benefits vs costs
Projects
None yet
Development

No branches or pull requests

5 participants