O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming with Functions

So what’s functional programming all about? Shockingly, it’s nothing more than the concept of “programming with functions,” leaving us with the task of defining what we consider to be a function. We can answer this question from different perspectives, one more practically applicable than the other. First, we take a look at the fundamentalist viewpoint, focusing on the concept of side effects. Next, we get closer to everyday reality in the world of .NET and C# development.

Pure Functions Versus Side Effects

From the fundamentalist functional programming point of view, you should think of a function in the pure mathematical sense. Rather than giving a formal definition, let’s just concentrate on one of its essential ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required