Join the DZone community and get the full member experience.Join For Free
Microservices. Streaming data. Event Sourcing and CQRS. Concurrency, routing, self-healing, persistence, clustering...learn how Akka enables Java developers to do all this out of the box! Brought to you in partnership with Lightbend.
A Read-eval-print-loop (REPL) is a simple program that takes input and immediately gives user feedback. The new language from Apple, Swift comes complete with its own REPL shell. To use it follow these simple instructions in a terminal. This is assuming you already have Xcode6 installed.
$ sudo xcode-select -s /Applications/Xcode6-Beta2.app/Contents/Developer/
Change the path to point to the version of Xcode you have installed
$ xcrun swift
Now should be in Swift's REPL and you can type commands that will be instantly executed.
$ var a = "hello" $ println(a)
Published at DZone with permission of Ricky Yim , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.