unique: string arguments do not need to escape #73680
Labels
Implementation
Issues describing a semantics-preserving change to the Go implementation.
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
Milestone
unique
clones any strings it finds in its input, if it can find them statically. (strings
hidden somewhere in an interface value are excepted.) This means string arguments (or types whose only reference types are strings) never need to escape.Note that pointer arguments still need to escape, because stack objects have no stable identity. But string arguments' identity is their data.
The text was updated successfully, but these errors were encountered: