mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Update readme
This commit is contained in:
parent
e06523361d
commit
5e5506f833
@ -243,8 +243,8 @@ Motivation
|
|||||||
So why yet another formatting library?
|
So why yet another formatting library?
|
||||||
|
|
||||||
There are plenty of methods for doing this task, from standard ones like
|
There are plenty of methods for doing this task, from standard ones like
|
||||||
the printf family of function and IOStreams to Boost Format library and
|
the printf family of function and IOStreams to Boost Format and FastFormat
|
||||||
FastFormat. The reason for creating a new library is that every existing
|
libraries. The reason for creating a new library is that every existing
|
||||||
solution that I found either had serious issues or didn't provide
|
solution that I found either had serious issues or didn't provide
|
||||||
all the features I needed.
|
all the features I needed.
|
||||||
|
|
||||||
@ -276,9 +276,8 @@ which is a lot of typing compared to printf:
|
|||||||
|
|
||||||
printf("%.2f\n", 1.23456);
|
printf("%.2f\n", 1.23456);
|
||||||
|
|
||||||
Matthew Wilson, the author of FastFormat, referred to this situation with
|
Matthew Wilson, the author of FastFormat, called this "chevron hell". IOStreams
|
||||||
IOStreams as "chevron hell". IOStreams doesn't support positional arguments
|
doesn't support positional arguments by design.
|
||||||
by design.
|
|
||||||
|
|
||||||
The good part is that IOStreams supports user-defined types and is safe
|
The good part is that IOStreams supports user-defined types and is safe
|
||||||
although error reporting is awkward.
|
although error reporting is awkward.
|
||||||
|
Loading…
Reference in New Issue
Block a user