Skip to content

Nicer printing of type and region variables #2632

Closed
@lkuper

Description

@lkuper

Today on IRC several of us were talking about how the way that type variables and region variables are printed (<VN> and <RN>, respectively, where N is an id number) is rather ugly. Now that we have integral type variables, printing them as <VIN> (as is happening now) just adds insult to injury. "integer" and "unconstrained int" were suggested as nicer solutions for integral type variables. We should come up with something nicer for the others as well.

There's already a -Z ppregions compiler flag, useful for debugging, that prints the IDs of regions. Maybe there could be a -Z ppvarids flag that prints the ID numbers for times when we really need them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions