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
nodrygo Apr 13 07:24
does V provide multiple values binding like GO ?
rsp, err := http.Get(STORIES_URL)
medvednikov Apr 13 08:47
Not yet, but it will soon.
ntrel Apr 15 11:36
Also, in V functions should return an optional result instead of returning both a result and an error. Optionals ensure both can't be accessed, as only one is valid.
medvednikov Apr 15 11:45
Good point @ntrel, forgot to mention that.

About 90% of Go code uses multiple return values for error handling.
Log in via GitHub to comment



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