Discussion on:

6
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Contributr
I just wish it weren't so verbose, like everything else in .NET.
0 Votes
+ -
Contributr
... where you just say, "please give me eval()". happy There is something about the Microsoft mindset that insists that everything have more features than you know what to do with. It's the "enterprise class" mentality, it's born out of the need to sell upgrades or justify support contracts.

J.Ja
0 Votes
+ -
Contributr
Looking at the syntax, the problem is that they've implemented functional programming using an object-oriented framework -- so all the verbiness has to get nounified.

But yes, there's also the Enterprise Mindset, where even namespaces have to be gratuitously nested to three or four levels for the sake of "robustness".
0 Votes
+ -
Without all the the objects
KodefuGuru Updated - 26th Jan 2010
You can write Justin's CreateAdderFunction like this:

public static Func CreateAdderFunction(int amountToAdd)
{
Expression<Func<int, int>> expression =
numberToAdd => amountToAdd + numberToAdd;
return expression.Compile();
}
0 Votes
+ -
Contributr
... because I am fairly certain that less than 50% of my audience has used it. When I give my presentation, that's the number I get when I poll the audience, about 30% - 50% depending on the crowd. sad

J.Ja
... but then, I love Lisp. In truly functional languages, though, you wouldn't even need to state that what you were creating was a "function object" -- that fact is built into the semantics of the language. So even the improved version seems too verbose to me.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.