Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

3.3 Type assertion - assumes interfaces and structs understood #31

@composer22

Description

@composer22

You introduce the idea of type assertion with examples of interfaces and structures.

  1. these are complicated syntactical examples that are difficult to understand in the realm of the basic language. Dot notation with some shit in-between parens:

y.(map[string]interface{})
value.(type)

  1. the reader has not been introduced to the concepts of interfaces or structs yet so it cannot be understood in this sequence.

Consider moving this section to advanced concepts and perhaps referencing this:

ex 3.3 Type assertion

"for more advanced subject of type conversion, please see section 2001.1" etc

EDIT: I think the whole document could use a good edit so that the examples and subjects flow with what is learned. Throughout the book, examples are presented using concepts and techniques that have not yet been introduced and explained, therefore it frustrates.

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