Skip to content

Chapter 1, struct, nil value #14

@hellojakecross

Description

@hellojakecross

When you create a Movie without a value for the string property, you say that it will have a zero value of nil. This is not the case - the property is a string and will have a zero value of "" (empty string). A struct with no value itself will be nil, not the property.

I cannot find an errata page for the book (I have a physical copy) - but if you could change it for the digital version...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions