Hello Tim, I appreciate the effort. I know about the Formatting module, but it does not provide printf() or sprintf() -- it only has sprintf1() which only takes 1 parameter -- and I am really not keen on using the Python formatting method. But thanks for the link.
Cheers, Daniel. On 3 May 2015 at 16:41, Tim Holy <[email protected]> wrote: > https://github.com/lindahua/Formatting.jl > > --Tim > > On Sunday, May 03, 2015 06:43:22 AM Daniel Carrera wrote: > > Hello, > > > > My biggest pet-peeve in Julia is that @sprintf is a macro and not a > > function. That makes it very annoying to use at times because I cannot > put > > a format string in a variable, or make a wrapper `printf()` function. I > > don't understand why this is an issue, since several other languages > have a > > printf() function. > > > > Is there any chance that I might see a printf() function in Julia in the > > future? > > > > I should clarify that I am aware of the "Formatting" module. I do not > want > > to use Python-style formatting strings. I don't like them, I think they > are > > confusing, and other languages that I use have traditional C-style > printf() > > functions, so I want to stick to those. I realize that the "Formatting" > > module has one function called "sprintf1()" but that function only > accepts > > one parameter, so it is not especially useful. > > > > Cheers, > > Daniel. > > -- When an engineer says that something can't be done, it's a code phrase that means it's not fun to do.
