Swift REPL

[THEY] { code post }

We're excruciatingly excited about Apple's announcement for Swift, their all new programming language for iOS and OS X.  As we're working through the language, we'll be posting updates outlining what we discover, illustrating how to accomplish tasks we're performing, or highlighting things we think are neat.  If you're more interested in our finished work and less in the behind-the-scenes stuff, feel free to ignore these posts.  We'll make sure to mark each one as a tech post so you can avoid the programming pothole. ;)

So far, we've noticed Apples new programming language swift has a great playground but can also be run in LLDB as a read-eval-print-loop:

$ alias swift=/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
$ swift
Welcome to Swift! Type :help for assistance.
1> let greeting = "Hello REPL!"
greeting: String = "Hello REPL!"
2> println(greeting)
Hello REPL!

Enjoy!