Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Your sort solution limits which algorithms can be used, because you can't pass in a Func which might need an additional parameter anymore" O RLY?

  void List<int> Sort(List<int> input, bool someParam){}

  var values = new List<int> { 9, 1, 5, 7 };
  DoSomething(x => Sort(x, true), values);
  
Thanks for proving my point that you really don't know C#.


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

Search: