https://www.apress.com/us/book/9781484239995
This repo contains corrections and potential additions for the book "Stylish F". If you see a typo or code mistake, or would like to suggest additional or revised content, please submit a PR here. Changes will be incorporated in the next edition when possible.
Is unfold
really an example starting with nothing?
Currently reads:
I want the average of largest three
Should read:
I want the average of the largest three
Currently reads:
...keep updating it if it the...
Should read:
...keep updating it if the...
"...as the real (government endorsed!) as one is..." -- delete the second "as".
Some s
is incorrectly indented.
Worth pointing out that Fable.Remoting
makes nice use of
records as interfaces.
Make the point that using interfaces rather than records-as-functions is an example of motivational transparency.
Currently reads:
// Requires the version of ConsolePrompt from Listing 8-4
Should read:
// Requires the version of ConsolePrompt from Listing 8-11
Need to amend this section to reflect the fact that you can have parameter names in interface definitions.
The typographic quotes in the listing have incorrectly been replaced with neutral quotes.
Change "highly questionable, main wiring" to "highly questionable mains wiring".
Remove paragraph saying that it would now be a good time to rurun the code.
- Add new section on
Option.orElse
.
- Add a cross reference between LINQ naming and F# name - e.g. SelectMany -> collect
- Add something about the
KeyValuePair
active pattern, especially when working with dictionaries/maps.
- Add new section on
TaskBuilder.fs
: https://github.com/rspeele/TaskBuilder.fs/blob/master/TaskBuilder.fs
Consider adding a section on type providers.
- SQL
- CSV
- CSV versus CSVFile
- Sampling issues
- JSON
- Add new section to Chapter 7 to cover anonymous record types:
-- Instantiation
-- Consumption
-- Performance
-- Structs
-- Serialization
-- LINQ
- Amend existing commentary on long tuples in pipelines to include the possibility of using anonymous record types.
See this for style comments: https://blogs.msdn.microsoft.com/dotnet/2019/01/24/announcing-f-4-6-preview/
Delete/amend the para beginning At the time of writing... on p.55.
Consider adding to Chapter 4.