Skip to content

go/printer: review formatting of multi-expression return statement #79515

Open

Description

@griesemer

This is a reminder issue following up on #7195 which fixed the existing formatting (CL 752220, CL 779921).
We should check that the change also works as desired if there's a mix of comp. literals and multi-line expressions in the return statement.

Activity

  1. added this to the Go1.28 milestone on May 19, 2026
  2. self-assigned this
    on May 19, 2026
  3. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on May 19, 2026
  4. added theissue type on May 19, 2026
  5. dev-vmpyr commented on Oct 16, 2026

    @dev-vmpyr

    Hi @griesemer ! I'd be interested in investigating the remaining formatting cases in this issue, particularly the combination of composite literals and multiline expressions in a multi-expression return statement.

    I noticed the issue is assigned to you, so I wanted to check first whether you'd be happy for me to investigate and potentially submit a focused regression test and fix. I can start by checking the behavior against the existing formatting changes and tests.

  6. griesemer commented on Oct 19, 2026

    @griesemer
    ContributorAuthor

    @dev-vmpyr Feel free to give it a shot, but please note that we may reject the solution if it doesn't seem adequate.
    (As an aside, we will ignore unfiltered, obviously LLM-generated code. You need to be able to explain every line of any submission you send. Thanks.)

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

Metadata

Metadata

Assignees

Labels

NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions