Descriptiongo.tools/go/types: type the append([]byte, string...) builtin more correctly This builtin is a little weird in this form as it is (to my knowledge) the only function that takes a variadic argument of non-slice type. The language provides no syntax to express this, so we pick a stringification for such arguments that does not appear in the language. Specifically, use T... instead of ...T to distinguish it from the normal case where the type is a slice. This change lets the go/ssa package produce more efficient IR by avoiding an extra conversion of the second argument. Patch Set 1 #Patch Set 2 : diff -r c1516b52ea3b https://code.google.com/p/go.tools #Patch Set 3 : diff -r c1516b52ea3b https://code.google.com/p/go.tools # Total comments: 2
MessagesTotal messages: 7 | |||||||||||||||||||||||||||||||||||||