Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
F# 4.0 Design Patterns

You're reading from   F# 4.0 Design Patterns Solve complex problems with functional thinking

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher Packt
ISBN-13 9781785884726
Length 318 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Gene Belitski Gene Belitski
Author Profile Icon Gene Belitski
Gene Belitski
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Begin Thinking Functionally 2. Dissecting F# Origins and Design FREE CHAPTER 3. Basic Functions 4. Basic Pattern Matching 5. Algebraic Data Types 6. Sequences - The Core of Data Processing Patterns 7. Advanced Techniques: Functions Revisited 8. Data Crunching – Data Transformation Patterns 9. More Data Crunching 10. Type Augmentation and Generic Computations 11. F# Expert Techniques 12. F# and OOP Principles/Design Patterns 13. Troubleshooting Functional Code

Intrinsic F# language features

Along with features inherited from F# predecessors, the F# language carries its own set of notable novel facilities. The outline of these facilities is discussed in the upcoming sections.

Indentation-aware syntax

Yes, this is correct; the F# compiler is sensitive to indentation in the source code (https://msdn.microsoft.com/en-us/library/dd233191.aspx), so correct code formatting is not just a matter of aesthetics. Why? Firstly, the improved code readability is enforced by the compiler, and secondly, this design choice dramatically decreases the amount of noise in the F# source code as block markers (such as curly brackets in C#) do not present, overall making the F# source code significantly shorter than the equivalent C# one.

Units of measure

This feature (https://msdn.microsoft.com/en-us/library/dd233243.aspx) allows you to decorate values with associated units and statically validate unit usage correctness by the compiler as well as infer units associated...

You have been reading a chapter from
F# 4.0 Design Patterns
Published in: Nov 2016
Publisher: Packt
ISBN-13: 9781785884726
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime