Immutable Data

A key to purely functional languages is that their data are immutable. Therefore, assignments such as x= x+1 or ++x are not possible in the purely functional language Haskell. The consequence is that Haskell supports no loops like for, while, or until. They are based on the modification of a loop variable. Haskell does not modify existing data; Haskell creates new data when needed and reuses the old ones.

Read more
Views: 28457

Higher-Order Functions

Higher-order functions are the pendant to First-Class Functions because higher-order functions can take functions as an argument or return them as a result.

Read more
Views: 73829

First-Class Functions

One of the characteristics of functional programming is first-class functions. First-class functions behave like data and are heavily used in the Standard Template Library.

Read more
Views: 40177

The Definition of Functional Programming

The definition of functional programming is relatively easy. Functional programming is programming with mathematical functions. Is that all? Of course, not!

Read more
Views: 62670

Functional in C++17 and C++20

Which functional feature can we expect with C++17, and for which functional feature can we hope with C++20? This is precisely the question I will concisely answer in this post.

Read more
Tags: Haskell
Views: 90468

Functional in C++11 and C++14: Dispatch Table and Generic Lambdas

My favorite example, the dispatch table, shows how nicely the features in modern C++ work together. A dispatch table is a table of pointers to functions. In my case, it is a table of handles for polymorphic function wrappers.

Read more
Views: 78577

Functional in TR1 and C++11

This post continues our journey through the functional features of classical, modern, and future C++. Today, we stop in the present.

Read more
Tags: auto
Views: 30669

Functional in C++98

C++ is not a functional programming language, but you can program in a functional style. What are the functional features of C++? I will answer this question for C++98.

Read more
Views: 37244

Object-Oriented, Generic, and Functional Programming

C++ is not a functional programming language. C++ has its roots in procedural and object-oriented programming. So it's pretty surprising that programming in a functional style becomes increasingly important in C++. That is not only true for C++. That also holds for Python, which has many functional features, and even for Java. Now Java has lambda functions.


Read more
Views: 61122

Stay Informed about my Mentoring



English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Course: The All-in-One Guide to C++20

Course: Master Software Design Patterns and Architecture in C++

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code


Today 4514

Yesterday 4550

Week 4514

Month 26188

All 12104397

Currently are 166 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments