Functions
Again, the type comes after the argument's name.
When a function signature spans multiple lines, commas between parameters are optional:
Just like in Go and C, functions cannot be overloaded. This simplifies the code and improves maintainability and readability.
Hoisting
Functions can be used before their declaration:
add and sub are declared after main, but can still be called from main.
This is true for all declarations in V and eliminates the need for header files
or thinking about the order of files and declarations.
Returning multiple values
A call returning multiple values can supply consecutive parameters of a non-variadic function or method. It can appear before or after ordinary arguments, as long as the expanded values match the receiving parameters. The returning function is evaluated once.