That's exactly the approach in the c-style portion of Formatting.jl.

On Thursday, December 4, 2014 8:49:15 PM UTC+7, Ivar Nesje wrote:
>
> A function wrapping Julia @sprintf will be typesafe, but will have 
> terrible performance. One could cache the generated functions though, so 
> that the format string will only be used as a lookup in a hash table that 
> points to the specialized (typesafe) function for that format string.
>

Reply via email to