Название: Know Go: Generics Автор: John Arundel Издательство: Independently published Год: April 18, 2022 Страниц: 143 Язык: английский Формат: pdf (true) Размер: 10.2 MB
Go beyond the basics, and master the new generics features introduced in Go 1.18! Learn all about type parameters and constraints in Go and how to use them, with this easy-to-read but comprehensive guide from top-rated Go teacher and mentor John Arundel.
If you’re new to Go and generics, and wondering what all the fuss is about, this book is for you! If you have some experience with Go already, but want to learn about the new generics features, this book is also for you. And if you’ve been waiting impatiently for Go to just get generics already so you can use it, don’t worry: this book is for you too!
You don’t need an advanced degree in computer science or tons of programming experience. Know Go: Generics explains what you need to know in plain, ordinary language, with simple examples that will show you what’s new, how the language changes will affect you, and exactly how to use generics in your own programs and packages. As you’d expect from the author of For the Love of Go and The Power of Go: Tools, it’s fun and easy reading, but it’s also packed with powerful ideas, concepts, and techniques that you can use in real-world applications.
What version of Go does it cover? This book requires Go 1.18, released in March 2022, and all the code samples have been tested against at least that version. Although experimental (and strongly deprecated) support for generics was included in Go 1.17, you shouldn’t use it. To use generics in production programs, you need to upgrade to at least Go 1.18.
Who is the book for? This book is for people who are new to the generics features in Go and want to know what they are, how to use them, and what they should do differently now that Go has generics. If you have some experience using Go prior to the introduction of generics, and you just want to know what’s new, you’ll find everything you need to know right here.
If you’re used to using generics in other languages, such as Java or C++, and you’d like to know how that experience will translate to Go, this book is also for you. If you’ve considered using Go in the past but decided against it for one reason or another, maybe the introduction of generics will tip the balance for you. This book will help you decide whether you’ll be able to do what you want to do with Go’s generics.
And whether you have any experience with Go or not, you may be worried that generics adds unnecessary complexity to the language and will make it harder for you to understand, or even write, programs. This book is for you too! I hope you’ll find that generic programming in Go isn’t as difficult or complicated as it might sound. In fact, it’s extremely straightforward, when we approach it the right way.
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
С этой публикацией часто скачивают:
Learning Go, 2nd Edition (Third Early Release) Название: Learning Go: An Idiomatic Approach to Real-World Go Programming, 2nd Edition (Third Early Release) Автор: Jon Bodner Издательство: O’Reilly...
Learning Go, 2nd Edition (Second Early Release) Название: Learning Go: An Idiomatic Approach to Real-World Go Programming, 2nd Edition (Second Early Release) Автор: Jon Bodner Издательство:...
Advanced Swift: Updated for Swift 5 Название: Advanced Swift: Updated for Swift 5 Автор: Chris Eidhof, Ole Begemann, Florian Kugler, Ben Cohen Издательство: Kugler und Eidhof GbR Год:...
Using Generics in C# (Видеокурс) Название: Using Generics in C# (Видеокурс) Автор: Robby Millsap Издательство: Lynda Год: 2018 Видео: H264 MP4 AVC, 1280x720 Аудио: AAC 48000 KHz 2 Ch...
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.