Use Terminal to Evaluate Simple Swift Commands

preview_player
Показать описание
Swift comes with the REPL (Read, Eval, Print Loop) tool to evaluate simple commands.

Рекомендации по теме
Комментарии
Автор

Newer OS systems type: swift repl
In order to generate a script on terminal for testing lines of code.

ricardocebreros
Автор

On Monterey, with swift version 5.7.2, for some reason when I just type swift I get a short response with some options. To get the interactive prompt, I need to type swift -repl

jmarinchak
join shbcf.ru