I’m just checking out anonymous methods (in c#)–part of me likes the flexibility and short-hand, but I’m also concerned that it may make the code harder to read.
It also occurred to me that this construct seems to go against some of the o/o paradigm. Do you consider anonymous methods to be in-line with object oriented principles?
lambda(anonymous methods) is from the functional paradigm. That doesn’t mean it is good or bad! If it fits the problem then use it, if it doesn’t don’t. OOP is not a goal, good code is the goal. I hate when people try to force a single paradigm down the throat, like in Java for example. C# is going in the right direction (IMHO), so it is becoming a multiparadigm language.