在经历了几十年的相对默默无闻之后,函数式编程终于有了自己的发展。由于简洁易读的代码支持异步并发处理,函数式编程的各个方面已经开始出现在一些传统的面向对象语言中,如C#和Java。这本实用的书向C#程序员展示了如何使用函数式编程功能,而不必使用全新的语言。
由于C#和F#语言共用的共享运行时环境,因此也可以在C#中使用F#的大部分功能特性。作者Simon J.Painter解释了如何立即用C#编写功能代码,而不必安装比C#更新的依赖项或功能。第三网。为什么函数式编程能给你的工作带来立竿见影的好处。
了解什么是函数式编程,以及它是如何起源的
使用更熟悉的语言发现功能范式的特征
立即在C中开始功能性编码,无需依赖第三方库
编写更健壮、更不容易出错、更易于测试的代码
检查C语言中可用的不太常规的结构#
探索在商业环境中使用功能C#的实用性
Functional Programming with C# (Early Release)
After decades of relative obscurity, functional programming is finally coming into its own. With concise, easy-to-read code that supports asynchronous, concurrent processing, aspects of functional programming have begun to appear in several traditionally object-oriented languages such as C# and Java. This practical book shows C# programmers how to use functional programming features without having to navigate an entirely new language.
Because of the shared runtime environment common to C# and F# languages, it’s possible to use most of F#’s functional features in C# as well. Author Simon J. Painter explains how you can write functional code in C# right away, without having to install dependencies or features newer than .NET 3. You’ll learn why functional programming concepts can bring immediate benefit to your work.
Learn what functional programming is and how it originated
Discover features of the functional paradigm using a more familiar language
Start coding functionally in C# right away, without relying on third-party libraries
Write code that’s more robust, less error prone, and easier to test
Examine less conventional ways to look at structures available in C#
Explore the practicalities of using functional C# in a business environment
OR