Timeline for C# Lambdas as Answers to questions asking for a Function
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 8, 2017 at 20:45 | history | edited | VisualMelon | CC BY-SA 3.0 |
Editing so that people can change vote if they prefer the other answer.
|
Dec 26, 2016 at 11:27 | comment | added | VisualMelon |
@Hedi indeed, and there are even shorter ways of naming it in C# 6. As I say, I don't see this as an issue, it is just a consequence of a ruling which I think makes sense. The reason I go on about them so much is because there are 'anonymous delegate' answers of the form a=>a+a which I am arguing should be invalid.
|
|
Dec 25, 2016 at 10:15 | comment | added | Hedi |
It seems like the anonymous function is not interessting for golf. Naming this function takes 29 bytes System.Func<int,int>f=a=>a+a; . Making it anonymous takes 30 bytes (System.Func<int,int>)(a=>a+a)
|
|
Dec 19, 2016 at 20:56 | history | answered | VisualMelon | CC BY-SA 3.0 |