V: anonymous function

Created on 23 Oct 2019  路  4Comments  路  Source: vlang/v

Like Go, V should also have anonymous functions.

fn main() {
  fn(foo string) {
   println(foo)
  }('foo')
}
Feature Request Duplicate

Most helpful comment

@nedpals That might not be called anonymous anymore IMO.

All 4 comments

would be a cool thing too to be stored in variables

@nedpals That might not be called anonymous anymore IMO.

See #1066

This issue is a duplicate so I'm closing it. :smiley:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

penguindark picture penguindark  路  3Comments

taojy123 picture taojy123  路  3Comments

clpo13 picture clpo13  路  3Comments

choleraehyq picture choleraehyq  路  3Comments

jtkirkpatrick picture jtkirkpatrick  路  3Comments