REPL Support for Swift Packages
The Swift distribution comes with a REPL for the Swift language. The Swift REPL is a great tool for experimenting with Swift code without needing to create a throwaway Swift package or Xcode project. The REPL can be launched by running the swift command without any arguments.
→ swift.org/blog/swiftpm-repl-support/
The swift run
command now includes a --repl
option. This lets you start the Swift REPL and import library targets from a package. This makes it easier to test and play with Swift code in packages like Yams or Vapor's HTTP. Swift Package Manager builds the needed parts behind the scenes to support this.
Category:
Tag:
Year: