Formatting.jl icon indicating copy to clipboard operation
Formatting.jl copied to clipboard

Basic implementation of (s)printf using @(s)printf macros.

Open dcarrera opened this issue 8 years ago • 3 comments

This is an implementation of printf() and sprintf() that relies on generated functions, and the existing @printf and @sprintf macros. The key code was posted on the Julia mailing list by Tim Holy. I just added the small wrappers to make printf() and sprintf().

dcarrera avatar Sep 28 '15 08:09 dcarrera

could you post some performance benchmark?

tonyhffong avatar Sep 28 '15 12:09 tonyhffong

I think eventually we should use Grisu algorithm.

lindahua avatar Oct 02 '15 04:10 lindahua

From the way it is implemented, I'm not seeing what it offers materially either from a performance or expressiveness perspective. I recommend we reject this PR.

tonyhffong avatar Nov 26 '15 03:11 tonyhffong