V Forum

[ log in ]

V and first class functions

bentxt 2019-06-21 07:28
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?
medvednikov 2019-06-21 07:45

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

Closures will be implemented soon.

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