Open baryluk opened 3 years ago
@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 ?
@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, 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.
GHC has also supported this notation since 8.6.1: https://typeclasses.com/ghc/numeric-underscores
@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.
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.
This is the format Erste's CSV export uses.
Edit: nevermind, it was Doom Emacs showing NBSP as underscore. But that means NBSP is not handled as advertised.
would be nice to have. At least for inputs, but also for outputs.