Hacker News new | ask | show | jobs
by nrkn 4844 days ago
You're wrong. A lambda can have a body. Compiles and executes:

  new Func<string>(() => {
    var foo = "bar";
    return foo;
  })();