You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if it was possible to run the `swift` binary with an option, e.g. `-i` for "interactive", that would give access in the REPL to (public) data and functions from the file that was just executed. Today, when doing `swift myscript.swift` from the command line, one is returned to the shell as soon as the script file has been executed. What I ask for, is a way to remain in the REPL and to be able to experiment further with the data and functions that the script provided.
The text was updated successfully, but these errors were encountered:
Tagging as LLDB since I think we'd implement this by having the existing REPL run a script rather than by having the existing JIT drop you into the REPL. cc jingham@apple.com (JIRA User)
Additional Detail from JIRA
md5: b158931f122cf4b19148d1be6afab6e4
Issue Description:
It would be great if it was possible to run the `swift` binary with an option, e.g. `-i` for "interactive", that would give access in the REPL to (public) data and functions from the file that was just executed. Today, when doing `swift myscript.swift` from the command line, one is returned to the shell as soon as the script file has been executed. What I ask for, is a way to remain in the REPL and to be able to experiment further with the data and functions that the script provided.
The text was updated successfully, but these errors were encountered: