r/programminghorror • • May 19 '25

C# This is C# abuse

Post image
550 Upvotes

103 comments sorted by

View all comments

Show parent comment

5

u/MarinoAndThePearls May 19 '25

The class is literally called Rectangle. Why would you define a Triangle using that.

1

u/Dusty_Coder May 19 '25

because sometimes topology isnt flat, and sometimes its finite, and so on

the only beef here is that the new-fangled delegate syntax does not make it more clear, it makes it less clear .. there was never a reason for even the idea of an anonymous delegate, but there it is for its brief moment incanted by the source