Functional Programming in C++

  • 5h 47m
  • Ivan Čukić
  • Manning Publications
  • 2018

Summary

Functional Programming in C++ teaches developers the practical side of functional programming and the tools that C++ provides to develop software in the functional style. This in-depth guide is full of useful diagrams that help you understand FP concepts and begin to think functionally.

About the Technology

Well-written code is easier to test and reuse, simpler to parallelize, and less error prone. Mastering the functional style of programming can help you tackle the demands of modern apps and will lead to simpler expression of complex program logic, graceful error handling, and elegant concurrency. C++ supports FP with templates, lambdas, and other core language features, along with many parts of the STL.

About the Book

Functional Programming in C++ helps you unleash the functional side of your brain, as you gain a powerful new perspective on C++ coding. You'll discover dozens of examples, diagrams, and illustrations that break down the functional concepts you can apply in C++, including lazy evaluation, function objects and invokables, algebraic data types, and more. As you read, you'll match FP techniques with practical scenarios where they offer the most benefit.

What's inside

  • Writing safer code with no performance penalties
  • Explicitly handling errors through the type system
  • Extending C++ with new control structures
  • Composing tasks with DSLs

About the Reader

Written for developers with two or more years of experience coding in C++.

About the Author

Ivan Čukić is a core developer at KDE and has been coding in C++ since 1998. He teaches modern C++ and functional programming at the Faculty of Mathematics at the University of Belgrade.

In this Book

  • About This Book
  • Introduction to Functional Programming
  • Getting Started with Functional Programming
  • Function Objects
  • Creating New Functions from the Old Ones
  • Purity—Avoiding Mutable State
  • Lazy Evaluation
  • Ranges
  • Functional Data Structures
  • Algebraic Data Types and Pattern Matching
  • Monads
  • Template Metaprogramming
  • Functional Design for Concurrent Systems
  • Testing and Debugging
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.5 of 53 users Rating 4.5 of 53 users (53)
Journey C
Rating 3.7 of 6 users Rating 3.7 of 6 users (6)