Created
July 1, 2015 04:00
-
-
Save eneko/fb4f021158433a15ed2e to your computer and use it in GitHub Desktop.
Swift scripting and compiling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chmod 755 hello.swift | |
$ ./hello.swift | |
Hello world! | |
$ swiftc hello.swift | |
$ ./hello | |
Hello world! | |
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swift | |
println("Hello world!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment