Hacker News new | comments | show | ask | jobs | submit login

Even with delegates, C#'s version is pretty much equivalent to JS's:

JavaScript:

  var blah = function(){ return "im a function"};
C# 3.0:

  var blah = delegate { return "im a function"; };
C# 2.0:

  Func<string> blah = delegate { return "im a function"; };



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: