Chapter 6 Julia Language
This is a selective description of topics taken from Julia documentation.
6.1 Get started
You can start using Julia on an interactive session by running julia
from the command
line. The session can be closed using CTRL-D
or typing exit()
inside Julia session.
We can evaluate a script using the function include
.
A custom script with optional arguments can also be evaluated non-interactively providing
the script name as a first argument to the julia
command.
Note that the script name is passed to the global variable PROGRAM_FILE
. Similarly,
the arguments are passed to ARGS
.
A simple example for script.jl
where the script name and arguments are printed can be
found below.