As a new Julia user I make frequent use of REPL help prompt, and have found
fieldnames() to be helpful in cases where docstrings don’t have much to offer. In many cases I find I still need to turn to the source to understand how I am supposed to use a method, struct or macro.
In MATLAB I could print the relevant source to the command window easily with the
type command. Is it possible for a Julia macro to provide the functionality of MATLAB’s
type filenamedisplays the contents of the specified file in the MATLAB® Command Window.
Perhaps something similar already exists to dump snippets of Julia source code to the REPL? I realize that MATLAB’s “one function per
.m file” means that I’ve under specified what I’m asking Julia to do.
I’ve looked for other discussion on this topic but it’s difficult to form a good search query because “type” appears in so many other contexts.