Accessing V programming using a REPL
REPL stands for read-eval-print loop. Many popular programming languages in addition to V, such as Python, PHP, Rust, and R, to name a few, have a REPL.
As we have installed V and added V to the Environment Variables window, we can access V's REPL by running the following command from the command-line Terminal:
v
You should see the following result when you successfully enter the command into V's REPL:
Welcome to the V REPL (for help with V itself, type 'exit', then run 'v help'). V 0.2.4 d373eba Use Ctrl-C or 'exit' to exit, or 'help' to see other available commands >>>
Alternatively, you can type v repl
into Command Prompt and hit Enter. Pay attention to the three forward arrows, >>>
, which indicate the terminal that takes V commands. To begin, let's print a string in a new line by running the following V code, as follows:
>>> println('Hello...