Skip to content

proposal: go/types: an API for normalized interface terms #61013

Description

@findleyr

This is a placeholder for planning purposes, to be exchanged for a proper proposal at a future date.

EDIT(2024-02-06): Please see the actual proposal in this comment below: #61013 (comment)

As discussed in #60994, there are some missing go/types APIs that are currently papered over with the x/exp/typeparams package.

In particular, we should propose a go/types API that serves the purpose of the NormalTerms function -- some way to traverse a normalized representation of the terms of an interface types.

We could expose an equivalent API to NormalTerms, or do something simpler. Let's decide early in the go1.22 cycle.

CC @griesemer @adonovan @timothy-king @mdempsky

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

  • Status
    Incoming

Relationships

None yet

Development

No branches or pull requests

Issue actions