Dotty: Use integers versus English words for warnings and errors

Created on 2 Oct 2019  路  5Comments  路  Source: lampepfl/dotty

I just noticed that warning and error numbers are not integers for low numbers. This seems like this could affect tools that may need to parse the output and is more difficult for non English readers as well.

Example:

[warn] three warnings found
[error] four errors found
novice help wanted enhancement

Most helpful comment

Consistently using numbers is just so much easier to parse for humans. As a person with dyslexia, I can tell you that this kind of detail goes beyond aesthetic, I find it genuinely annoying.

I don't buy the standard orthography argument, if the standard is stupid we shouldn't follow it. Also, this is a compiler, not a poetry emiter...

All 5 comments

This is standard orthography. "Three days ago" and not "3 days ago" unless you're texting or composing a pop song.

Tools from the 1980s that don't understand "three" should be retired.

Build tools should use reporter.errorCount or equivalent.

Formatting is normally contextual, such as the output of ls -l, which is a time of day for recent files and year otherwise.

If localization is a goal, drei Fehler gefunden, then maybe there is a convention for a numeric locale that prefers all numbers be expressed in digits, in a preferred radix.

Consistently using numbers is just so much easier to parse for humans. As a person with dyslexia, I can tell you that this kind of detail goes beyond aesthetic, I find it genuinely annoying.

I don't buy the standard orthography argument, if the standard is stupid we shouldn't follow it. Also, this is a compiler, not a poetry emiter...

Is help still wanted? If it is, I would love to contribute. Seems like a good first issue.

Sorry, it took so long. I was quite busy. Please review my pull request.
Hope I haven't missed anything.

7527

Was this page helpful?
0 / 5 - 0 ratings

Related issues

odersky picture odersky  路  3Comments

ohze picture ohze  路  3Comments

deusaquilus picture deusaquilus  路  3Comments

LaymanMergen picture LaymanMergen  路  3Comments

liufengyun picture liufengyun  路  3Comments