I ran into a problem yesterday with https://github.com/JuliaIO/Formatting.jl not working on v0.6 (I posted the following issue: https://github.com/JuliaIO/Formatting.jl/issues/27, as I don’t know how to work around this issue yet - once I do, I can submit a PR to fix the problem).
Basically, the code is using quote
and eval
to generate a function that wrap a call to the @sprintf
macro with specific arguments, and then store those functions for reuse in a Dict
, the first time that format has been seen, and then immediately calling that function.
That seems to be pretty useful functionality, however it doesn’t work anymore due to (AFAICT) https://github.com/JuliaLang/julia/pull/17057.
What would be the most performant way of doing this in v0.6?