~/talk

I'm Excited to Use Generics in Go 1.21

Talkat GopherCon Europe 2023 · 2023-06-26..06-29· [go]
slides:none on file

Go 1.21 tightens generic type inference so callers can omit type arguments in more cases: generic functions as arguments now infer, methods considered for interface assignment lets generic structs and concrete types satisfy generic interfaces without repeating parameters, and untyped constants convert naturally instead of erroring. Practical result: less repetition and clearer code — e.g., Apache Beam’s dofn registration previously required explicit types for structural dofns due to inference failures but now infers and compiles.

AI-written summary · about

  1. 0:00Introduction to Go 1.21
  2. 1:36Type Inference Improvements
  3. 2:46Method Assignment Changes
  4. 3:37Constant Behavior in Go
  5. 4:22Generics in Apache Beam
  6. 5:43Impact on Code Quality
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.