As I guessed, you appear to be not interested in solutions. Still let me show a possible one:
- (Optional) change to your preferred directory, e.g.
cd("./shalom")
- Create a (possibly empty) script file therein, let’s name it
myscript.jl
- From REPL, execute:
using Revise; includet("myscript.jl")
- Edit your script, e.g. write a function
add(x, y) = x + y
- Call your function from REPL
Repeat the last two steps. E.g. redefine the function, make it add(x, y, z) = x + y + z
Now, try to execute in REPL:
julia> add(2,3)
ERROR: MethodError: no method matching add(::Int64, ::Int64)
You see, the old definition is gone, and the new one is here:
julia> add(2,3,4)
9
If THAT sounds too complicated, then be warned: The rest of Julia (and any other programming language) requires way more mental effort than that.