The "Expressions and syntax" series
In this series of posts we’ll look at how functions and values are combined into expressions, and the different kinds of expressions that are available in F#.
-
1. Expressions and syntax: Introduction
How to code in F# -
2. Expressions vs. statements
Why expressions are safer and make better building blocks -
3. Overview of F# expressions
Control flows, lets, dos, and more -
4. Binding with let, use, and do
How to use them -
5. F# syntax: indentation and verbosity
Understanding the offside rule -
6. Parameter and value naming conventions
a, f, x and friends -
7. Control flow expressions
And how to avoid using them -
8. Exceptions
Syntax for throwing and catching -
9. Match expressions
The workhorse of F# -
10. Formatted text using printf
Tips and techniques for printing and logging -
11. Worked example: Parsing command line arguments
Pattern matching in practice -
12. Worked example: Roman numerals
More pattern matching in practice