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

V and first class functions

Alex
Apr 15 · 3 min read
bentxt Jun 21 07:28
Hi,
Congrats to the highly anticipated release!
I wonder where V stands with regards to first class functions, which means having them stored in variables, passed around as arguments or simply nested within oder functions.
I don't think there is something there yet, but is this something that could be included in a future release?
Ben
medvednikov Jun 21 07:45
Hi,

Most of this is actually implemented. You can pass and return functions, define function types.

Closures will be implemented soon.
Log in via GitHub to comment



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