Skip to content

[]*Type vs. []Type #284

Closed
Closed
@drombosky

Description

@drombosky

I was wondering if there is a technical reason to use slices of pointers (e.g., []*string) rather than just slices (e.g., []string). Passing around []*Type feels a bit unnatural in Go and is forcing me to either propagate this typing convention or convert before AWS calls.

I understand that pointers to scalers are required scalers are not nilable, but I am not sure why individual elements of a slice need to be nilable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue is a duplicate.feature-requestA feature should be added or improved.guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions