Loading…
CppCon 2018 has ended
View analytic
Wednesday, September 26 • 14:00 - 15:00
How to Argue(ment): What Type Should I Use for My Function's Arguments

Sign up or log in to save this to your schedule and see who's attending!

How many different ways are there to pass an argument? Why do we have so many? Which way should you be using? What does it mean when you use the wrong one?

A function declaration is like the thesis statement in an essay. It should communicate both for the caller and the callee it's purpose, semantics, and side-effects. We often think this communication is in the form of comments, but a function's arguments also convey this information.

This talk will catalog many the different ways to pass arguments. We will then explore which ones are redundant or nonsensical, and give meaning to the ones that remain. We will end with recommendations what types to use to express your intent, and empower you with fundamentals to write clearer function definitions.

Speakers
avatar for Richard Powell

Richard Powell

Audio Software Engineer
I started using C++ 10 years ago to write a psychoacoustic audio encoder/decoder and have continued to explore how to make software that unlocks the potential of hardware to bring amazing applications to life. I graduated from UC Berkeley with a BS in Electrical Engineering and Computer... Read More →


Wednesday September 26, 2018 14:00 - 15:00
Copper Mountain Theater (2nd Floor)

Attendees (219)