Could a command like MATLAB’s `type` exist in Julia

that’s the entire file right? which is trivial to do but kinda useless in Julia. The only reason this function is not useless in MATLAB is that you have one function per file which is, to be honest, crazy. (and that MATLAB doesn’t have multi-dispatch)


You can easily print source code of a function (method) in Julia, GitHub - timholy/CodeTracking.jl: It's editing-time, do you know where your methods are? provides

@code_string

macro. I have this add @code_src by Moelf · Pull Request #253 · KristofferC/OhMyREPL.jl · GitHub PR, which makes the result printed with syntax highlighting, if you’re into that sort of thing or is already using OhMyREPL.jl

4 Likes