aboutsummaryrefslogtreecommitdiff
path: root/design/generics-implementation-stenciling.md
diff options
context:
space:
mode:
Diffstat (limited to 'design/generics-implementation-stenciling.md')
-rw-r--r--design/generics-implementation-stenciling.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/design/generics-implementation-stenciling.md b/design/generics-implementation-stenciling.md
index 75a6d30..0efd93f 100644
--- a/design/generics-implementation-stenciling.md
+++ b/design/generics-implementation-stenciling.md
@@ -1,6 +1,6 @@
# Generics implementation - Stenciling
-This document describes a method to implement the [Go generics proposal](https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md). This method generates multiple implementations of a generic function by instantiating the body of that generic function for each set of types with which it is instantiated. By “implementation” here, I mean a blob of assembly code and associated descriptors (pcln tables, etc.). This proposal stands in opposition to the [Generics Implementation - Dictionaries](https://go.googlesource.com/proposal/+/refs/heads/master/design/generics-implementation-dictionaries.md) proposal, where we generate a single implementation of a generic function that handles all possible instantiated types.
+This document describes a method to implement the [Go generics proposal](https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md). This method generates multiple implementations of a generic function by instantiating the body of that generic function for each set of types with which it is instantiated. By “implementation” here, I mean a blob of assembly code and associated descriptors (pcln tables, etc.). This proposal stands in opposition to the [Generics Implementation - Dictionaries](https://go.googlesource.com/proposal/+/refs/heads/master/design/generics-implementation-dictionaries.md) proposal, where we generate a single implementation of a generic function that handles all possible instantiated types. The [Generics Implementation - GC Shape Stenciling](https://go.googlesource.com/proposal/+/refs/heads/master/design/generics-implementation-gcshape.md) proposal is a hybrid of that proposal and this one.
Suppose we have the following generic function