GopherCon 2023: Everything You Always Wanted to Know About Type Inference - Robert Griesemer

preview_player
Показать описание
Type inference is a powerful Go feature that simplifies the use of generic functions by allowing a user to omit explicit type arguments. Instead, the compiler looks at the uses of the generic functions and deduces what the type arguments must be. The result is less boilerplate and clutter and ultimately cleaner code.

If you are curious about how type inference does its magic, are wondering about how much more we can infer, or simply want to learn a bit more about one of Go's generic features, this talk is for you.
Рекомендации по теме
Комментарии
Автор

a bit too complicated... but it is a good presentation, will come back to watch again and again.

chenxuzhao