JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.58k stars 298 forks source link

Add a ligature for grouping digits of numeric literals to improve readability #182

Open juarezr opened 4 years ago

juarezr commented 4 years ago

In Rust language, underscores can be inserted in numeric literals to improve readability, e.g. 1_000 is the same as 1000, and 0.000_001 is the same as 0.000001.

But most of the other programming languages doesn't have this feature.

It would be very interesting if a ligature could improve the reading of large numbers.

philippnurullin commented 4 years ago

@juarezr Hi, this is an interesting idea. But i believe that it will bring a lot of confusion to people that are not accustomed to this. It will be a nice feature if we could make language specific ligatures. But for now we don't have the ability. But, please don't be discouraged. If you happen to notice some frequently used operator of character sequence send it to me.

juarezr commented 4 years ago

@philippnurullin

Thanks

OmegaRogue commented 4 years ago

C# also has support for _ as digit seperator starting with C# 7.0