matthid/Yaaf.FSharp.Scripting

Add a Load method

toburger opened this issue · 1 comments

Like Reference and Open you should also add a Load method, to load scripts interactively.

fsiSession.EvalInteraction("#load \"MyScript.fsx\"")

becomes

fsiSession.Load("MyScript.fsx")

Good point!
EvalScript actually falls back to that (https://github.com/fsharp/FSharp.Compiler.Service/blob/master/src/fsharp/fsi/fsi.fs#L2119). But having Load as well definitely makes sense.