Skip to content

Host Side Effects

Host-based expressions have side effects on the outside world.

Read from/Write to Host

The most used host-based expression is printing to the terminal.

\<         # Prints with nl 
\<.        # Prints without nl

# With file descriptor
\<:fd       # Prints with nl to <fd>
\<.:fd      # Prints without nl to <fd>
fd.:<       # Prints with nl to <fd>

# With constructor: same as IO::new(...)::< 
\<:(p1, ...)   # Prints with nl with parameters