Functional programming in C++


Ivan Čukić.
Bok Engelsk 2019
Annen tittel
Omfang
xxi, 296 pages : : illustrations ;
Opplysninger
Includes index.. - 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.. - Well-ritten code is easier to test and reuse, simpler to parallelize, and 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. "Functional programming in C++" helps you unleash the functional side of your brain, as you gain a powerful new peerspective 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. This book includes: Writing safer code with no performance penalties ; Explicitly handling errors through the type system ; Extending C++ with new control structures ; Composing tasks with DSLs. Written for developers with two or more years of experience coding in C++.
Emner
Dewey
ISBN
1617293814. - 9781617293818

Bibliotek som har denne