Two possibilities of fixing format problem, which is better?

berni44 dlang at d-ecke.de
Sun Oct 20 17:55:46 UTC 2019


This post is ab out issue 9592 [1], namely, that format does 
ignore the width parameter and the minus flag for some types and 
for some not (numbers, bool, strings). According to the 
documentation width is used always and the minus flag only for 
numbers.

Now I see two ways to fix this:

a) Correct the documentation.
b) Correct the code (in this case I'd change the documentation of 
the minus flag to include non-number types too).

What do you think is better?


[1] https://issues.dlang.org/show_bug.cgi?id=9592
[2] https://dlang.org/phobos/std_format.html#.formattedWrite


More information about the Digitalmars-d mailing list