The V Programming Language

Simple, fast, safe language created for developing Volt, soon available for everyone.

Open source release in June 2019. Early access since April 15.
Install V from source in 0.5 seconds
wget vlang.io/v.c && gcc -o v v.c
1.9k

Multiple return values?

Alex
Apr 15 · 3 min read
zuwa Jul 4 19:56
I've just discovered V and looking it over. Is it possible for function to return multiple values? I know I can use a struct or array but is that it?
P.S.
Fascinating language. Kudos to the author
medvednikov Jul 4 21:24
Hi,

Thanks!

Multiple return values will be implemented this month.
medvednikov Jul 4 21:25
Please note, that in Go, for example, in 80-90% of the cases you'd use multiple return values for handling errors. V uses optionals for that.
Log in via GitHub to comment



Powered by vtalk, open-source blogging/forum software written in V