Skip to content

Glossary: Go Beyond the Basics

type inference

Go working out a type argument from the values you pass, so you can write `Sum(xs)` instead of `Sum[int](xs)`. It fails when the type appears only in the result.

Where the book teaches it

Related terms

type argumentgenerics