First Program & Build/Run (REPL vs swiftc, scripts)
Write your first Swift program, run it in the REPL, compile with swiftc, and save scripts for reuse.
Intro
Goal: Write your first Swift program and learn how to run it. We will use the REPL, compile with swiftc, and create simple scripts.
Hello in REPL
In the REPL, type print("Hello, Swift") and press Enter. The result appears instantly—perfect for fast tests.
All lessons in this course
- What is Swift? Safety, Performance, Readability
- Install & Tools: Swift toolchain, REPL, swiftc, Editors
- First Program & Build/Run (REPL vs swiftc, scripts)