Skip to content

all: make Append* methods to functions #3406

@hajimehoshi

Description

@hajimehoshi

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Methods with prefix Append seem confusing. The intention is to get elements by appending the elements to a given slice, but a user might expect this has some side effects to the receiver.

Make them global functions instead.

Of course the current public methods cannot be changed if exist. Let's fix ones in the internal packages.

Why is this needed?

To avoid confusion.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions