Loading…
C++Now 2015 has ended
Please visit the C++Now website.
Friday, May 15 • 11:45am - 12:15pm
IIFE In C++ For Performance and Safety

Log in to save this to your schedule, view media, leave feedback and see who's attending!

IIFE (Immediately-Invoked Function Expression) is a common tool used in JavaScript. The idea is to both define an anonymous function and call it in the same expression. The point is to produce a local scope for variables so they do not pollute the global scope.

This same technique can be deployed in C++ to lead to cleaner, safer, more performant code when building up objects which require multiple steps to initialize.

Slides
 

Speakers
avatar for Jason Turner

Jason Turner

Trainer/Speaker/YouTuber, Jason Turner
Jason is host of the YouTube channel C++Weekly, co-host emeritus of the podcast CppCast, author of C++ Best Practices, and author of the first casual puzzle books designed to teach C++ fundamentals while having fun!


Friday May 15, 2015 11:45am - 12:15pm MDT
Hudson

Attendees (0)