Skip to content

go/types: refers to go/constant as exact #11949

Closed
@dvyukov

Description

@dvyukov

go/types docs:
http://tip.golang.org/pkg/go/types
periodically refer to a package exact. For example:

Constant folding computes the exact constant value (exact.Value) for every expression

and:

type TypeAndValue struct {
    Type  Type
    Value exact.Value
    // contains filtered or unexported fields
}

This is very confusing. There is no package exact.
I understand this was introduced during refactoring, but the cost of confused users is higher than the cost of sed invocation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions