Andrew Kelley 11d38a7e52 std.fmt.format: small optimization to avoid runtime bloat
When there are no format parameters, it simply calls `writeAll`. This
has the effect of no longer emitting a compile error for using `{}` and
not having any parameters, however, at this point in the development
process of Zig I think that tradeoff is worthwhile.

On the other hand, it might be OK to simply define formatting to work
this way. It's a common pattern to use the formatting function's format
string `"like this", .{}` instead of `"{}", .{"like this"}`, which can
lead to accidentally putting control characters in the formatting
string, however, with this change that works just fine.
2020-07-29 02:29:36 -07:00
..
2020-04-28 19:11:31 -06:00
2020-06-07 22:39:35 +10:00
2020-06-26 13:34:48 -06:00
2020-07-05 21:11:42 +00:00
2020-02-16 13:25:30 -05:00
2020-07-12 21:45:25 +00:00
2020-06-09 13:36:17 -04:00
2020-07-24 20:35:47 +00:00
2020-05-24 10:04:09 -04:00
2020-02-22 12:44:21 +01:00
2020-07-26 05:42:38 +00:00
2020-07-14 17:19:17 -07:00
2020-07-22 17:26:27 -04:00
2020-07-13 00:34:02 +10:00
2020-07-25 23:33:15 -07:00
2020-06-01 14:43:13 -04:00
2020-06-18 20:35:03 -04:00