News for hackers. Stuff that matters.
Re:Arrow Functions Coming to Chrome 45 by steego on Monday June 22, 2015 @03:27PM (#9760628)
When I'm working with C#, I often write code like so:

    products
      .Where(p => p.Price >= range.low && p.Price <= range.high)
      .GroupBy(p => p.Category)
      .Select(g => new { Category = g.Key.Name, Count = g.Count() })
It's not just about saving a few characters. It's about about making certain types of libraries readable by reducing the amount of noise.

There are no comments on this comment yet.