To give a pretty trivial example of syntax sugar, if someone has written in C#:
var maxHeight = buildings.Select(b => b.Height).Max();
then I might point out that you can shorten it to var maxHeight = buildings.Max(b => b.Height);
whilst keeping it just as readable. Well, more readable because you need to read less characters to easily understand it. It seems pretty nitpicky but it's the kind of thing I'm delighted to be shown myself.No comments yet.