Hi yfractal, The edit() function (and @edit macro, I think) do something similar. You might look at those and see if you can make them better.
Cheers! Kevin On Saturday, June 21, 2014, <[email protected]> wrote: > When I write code, I want to see the source code sometimes. So I think, if > I can do this by a function, it will be very handy! > > I didn't find one, then I try to write one. I am a new man in using Julia, > maybe I wrote some bad code....Please correct me if you find bad code(it is > only a file, so i didn't add tests or any else). :) > > Anyway, the code is work for me, and hope it is useful to others! > > The code is here: https://github.com/yfractal/Helpers.jl > > The usage > The readme is here : > https://github.com/yfractal/Helpers.jl/blob/master/README.org > ``` > @op JSON # will one the JSON package > > of(string) # will open the string's file > > of(string,2) # will open the second method of string. > > ``` > > > I put the code in my .juliarc.jl file. >
