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

shouji-kazuo picture shouji-kazuo  路  3Comments

medvednikov picture medvednikov  路  3Comments

jtkirkpatrick picture jtkirkpatrick  路  3Comments

radare picture radare  路  3Comments

cjmxp picture cjmxp  路  3Comments