(You are currently looking at the third edition version of this page. This page is also available for the first and second editions.)

Errata for Chapter 8: Cutting fluff with a smart compiler

P222, listing 8.3: Extra comma in listing

Listing 8.3 currently includes this:

new Person("Alice"),
{
    Age = 9,
    Home = { Town = "Twyford", Country = "UK" }
}

The comma after the constructor call needs to be removed, like this:

new Person("Alice")
{
    Age = 9,
    Home = { Town = "Twyford", Country = "UK" }
}