8 15 Jul 2015 15:30 by u/mattfloyd
Users.ValuesChanged += (ಠ,ರೃ) => HasChanges = true;
And then someone edits the file with a tool that saves with windows-1252 and you're all (╯°□°)╯︵ ┻━┻
┬─┬ノ( º _ ºノ)
ಠ.ಠ
While cute, in general unused parameters are usually called _ in the literature.
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.
5 comments
5 u/bondo 15 Jul 2015 16:59
And then someone edits the file with a tool that saves with windows-1252 and you're all (╯°□°)╯︵ ┻━┻
1 u/e0steven 15 Jul 2015 18:28
┬─┬ノ( º _ ºノ)
1 u/BlueSpeed 15 Jul 2015 16:36
ಠ.ಠ
1 u/beancounter 15 Jul 2015 19:47
While cute, in general unused parameters are usually called _ in the literature.
0 u/bondo 15 Jul 2015 20:08
Yeah, in C# I would do this:
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.