Chúng tôi không thể tìm thấy kết nối internet
Đang cố gắng kết nối lại
Có lỗi xảy ra!
Hãy kiên nhẫn trong khi chúng tôi khắc phục sự cố
GopherCon 2024: Các Mẫu Generics Nâng Cao - Axel Wagner
By now, we have two years of experience with generics in Go. Most Go developers are probably familiar with its basic usage, but there are some less obvious issues you might stumble over when trying to use them, as well as some niche problems they can help you with.
In this talk, we will go beyond the basic examples of higher-level functions. We will explore how to use constraints effectively, the ergonomics of generic APIs, how to use phantom types to increase the type-safety of your programs, and enable some transparent efficiency patterns.
Dịch Vào Lúc: 2025-03-02T09:21:50Z