Developer Skill Sprint: Delphi Anonymous Methods And C++11 Lambdas

Posted by on in Programming

I am doing a Developer Skill Sprint this Tuesday, September 22, 2015, titled "Delphi Anonymous Methods and C++11 Lambdas: When to use them and not use them". This blog post contains some of my notes and resource links for my skill sprint.

What will be covered?

  • Delphi Anonymous Methods
  • C++11 Lambdas
  • Parallel Programming Library
  • When to use them / When not to use them

Advantages of Anonymous Methods and Lambdas

  • Easy way to define and use methods
  • Easy to parameterize using code
  • Binding of variables in the context of your code
  • Avoids direct use of function and procedure pointers
  • Doesn't introduce a new name just for a temporary use
  • Code clarity: places code closer to where it's called

When To Use Them

  • To create a small method that is not meant to be reused
  • Method benefits and variable binding/hiding inline in your code
  • If a run time library requires them to be used (PPL for example)

When Not To Use Them

  • If you are building a library used by another language that does not support Anonymous Methods or Lambdas

Learning Resources

For more learning about Delphi Anonymous Methods and C++11 Lambdas, register for CodeRage X, October 13-15, 2015!

Gold User, Rank: 1, Points: 2466
David Intersimone (known to many as David I.) is a passionate and innovative software industry veteran-often referred to as a developer icon-who extols and educates the world on Embarcadero developer tools. He shares his visions as an active member of the industry speaking circuit and is tapped as an expert source by the media. He is a long-standing champion of architects, developers and database professionals and works to ensure that their needs are folded into Embarcadero's strategic product plans. David holds a bachelor's degree in computer science from California Polytechnic State University at San Luis Obispo, California.


  • Ilya S
    Ilya S Monday, 21 September 2015

    Is there a link to the Skill Sprint registration page?

  • Please login first in order for you to submit comments
  • Page :
  • 1

Check out more tips and tricks in this development video: