If you want to start learning swift without firing up an IDE, this post is for you. This post was written because the instructions in the references are slightly out of date.
Create a simple swift script with a shebang at the top. Add the following to arg_echo.swift
Make the script executable.
The script can be run from the command line.
Alternatively, run the script with the swift command. In this case, the shebang is unneccessary.
Use swiftc to compile an executable. The shebang will be ignored when compiling, so the above source code will work unchanged.
The executable can be run from the command line.