Lambda expressions: Dangerous Madness

R

raylopez99

Barry said:
If a learning curve is a graph of proficiency against time, then a
steeper curve is a *better* thing! :)


Yes, if knowledge is "area under the curve" then a steeper curve over
time is more area, more knowledge.

I like the rest of your post which shows I was on the right track, as
per my reading of the blog I quoted, that essentially GOTOs are
related to function calls and of course lambda expressions.

Now if I can find some examples of lambda expressions beyond the
simple ones usually given in books (like squaring a number)...

Thanks and goodbye.

RL
 
J

Jon Skeet [C# MVP]

I like the rest of your post which shows I was on the right track, as
per my reading of the blog I quoted, that essentially GOTOs are
related to function calls and of course lambda expressions.

Lambda expressions can be used as *part of* a continuation passing
style (which can *to some extent* be compared with GOTO), but the sort
of equivalent relationship you've drawn is completely wrong. It's like
saying that using a string is the equivalent of using a regular
expression, simply because regular expression libraries tend to use
strings.

Please try to understand both lambda expressions and CPS before you dig
yourself into a deeper hole.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top