[C#] Lovely idea for unused lambda parameters

8    15 Jul 2015 15:30 by u/mattfloyd

Users.ValuesChanged += (ಠ,ರೃ) => HasChanges = true;

5 comments

5

And then someone edits the file with a tool that saves with windows-1252 and you're all (╯°□°)╯︵ ┻━┻

1

┬─┬ノ( º _ ºノ)

1

ಠ.ಠ

1

While cute, in general unused parameters are usually called _ in the literature.

0

Yeah, in C# I would do this:

Users.ValuesChanged += (_,__) => HasChanges = true;

It's gets a bit ugly with more than two parameters, but not horrid. It's times like these that I wish C# had an "ignore" symbol like Go's underscore.