{"version":3,"sources":["webpack:///./src/assets/images/generics-type-constraint.jpg","webpack:///./src/assets/images/generic-two-type-parameters.jpg","webpack:///./src/assets/images/generic-function.jpg","webpack:///./src/assets/images/generic-type-struct.jpg","webpack:///./src/views/Chap38Generics.vue?e2a0","webpack:///src/views/Chap38Generics.vue","webpack:///./src/views/Chap38Generics.vue?e16f","webpack:///./src/views/Chap38Generics.vue"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","directives","name","rawName","pre","staticRenderFns","components","FeedbackInvite","BuyCopyInvite","NewsletterInput","ChapterHeading","ChapterBibliography","TOCChapter","NavBar","BIconLink45deg","Footer","created","window","data","publicPath","metaInfo","title","htmlAttrs","lang","meta","charset","content","property","link","rel","href","component"],"mappings":"mGAAAA,EAAOC,QAAU,IAA0B,6C,uBCA3CD,EAAOC,QAAU,IAA0B,gD,uBCA3CD,EAAOC,QAAU,IAA0B,qC,qBCA3CD,EAAOC,QAAU,IAA0B,wC,yCCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAUA,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,QAAQ,CAACA,EAAG,aAAa,CAACG,MAAM,CAAC,aAAa,oBAAoBH,EAAG,SAASA,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,OAAO,GAAK,MAAM,CAACH,EAAG,iBAAiB,CAACG,MAAM,CAAC,gBAAgB,uBAAuB,aAAa,eAAe,YAAY,cAAcH,EAAG,MAAM,CAACE,YAAY,SAASC,MAAM,CAAC,GAAK,yCAAyCH,EAAG,KAAK,CAACG,MAAM,CAAC,cAAc,MAAM,CAACH,EAAG,OAAO,CAACE,YAAY,yBAAyB,CAACN,EAAIQ,GAAG,OAAOR,EAAIQ,GAAG,0CAA0CJ,EAAG,IAAI,CAACG,MAAM,CAAC,KAAO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C,cAAAC,sBAAAC,eAEEC,QAJF,WAKIC,OAAOA,SAASA,EAApBA,IACEC,KANF,WAMA,OAAAC,iBACEC,SAAUA,CACRC,MAAJA,EACIC,UAAJA,CACMC,KAANA,MAEIC,KAAJA,CACA,CAAMC,QAANA,SACA,CAAMvB,KAANA,cAAMwB,QAANA,GACA,CAAMxB,KAANA,SAAMwB,QAANA,iBACA,CAAMC,SAANA,YAAMD,QAANA,SACA,CAAMC,SAANA,UAAMD,QAANA,WACA,CAAMC,SAANA,WAAMD,QAANA,GACA,CAAMC,SAANA,iBAAMD,QAANA,GACA,CAAMC,SAANA,SAAMD,QAANA,sBACA,CAAMC,SAANA,eAAMD,QAANA,wBACA,CAAMC,SAANA,eAAMD,QAANA,uBACA,CAAMC,SAANA,kBAAMD,QAANA,mBAEIE,KAAJA,CACA,CAAMC,IAANA,YAAMC,KAANA,yBCvrBwV,I,YCOpVC,EAAY,eACd,EACAxC,EACAc,GACA,EACA,KACA,WACA,MAIa,aAAA0B,E","file":"js/chunk-74a89c07.134c8439.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/generics-type-constraint.c43a1621.jpg\";","module.exports = __webpack_public_path__ + \"img/generic-two-type-parameters.08d9e283.jpg\";","module.exports = __webpack_public_path__ + \"img/generic-function.335e8dcc.jpg\";","module.exports = __webpack_public_path__ + \"img/generic-type-struct.c713b8b9.jpg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('NavBar'),_c('div',{staticClass:\"container-fluid\"},[_c('b-row',[_c('TOCChapter',{attrs:{\"chapter-id\":\"Chap38Generics\"}}),_c('b-col'),_c('b-col',{attrs:{\"role\":\"main\",\"md\":\"6\"}},[_c('ChapterHeading',{attrs:{\"chapter-title\":\"Chapter 38: Generics\",\"image-name\":\"generics.jpg\",\"image-alt\":\"Generics\"}}),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"what-will-you-learn-in-this-chapter\"}}),_c('h1',{attrs:{\"data-number\":\"1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"1\")]),_vm._v(\" What will you learn in this chapter? \"),_c('a',{attrs:{\"href\":\"#what-will-you-learn-in-this-chapter\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"We will see how to write generic functions, methods, and types\")])]),_c('li',[_c('p',[_vm._v(\"We will see how to use those generic constructs in your code\")])]),_c('li',[_c('p',[_vm._v(\"We will see the traditional use cases of generics: when to use them, when not to use them\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"technical-concepts-covered\"}}),_c('h2',{attrs:{\"data-number\":\"1.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"1.1\")]),_vm._v(\" Technical concepts covered \"),_c('a',{attrs:{\"href\":\"#technical-concepts-covered\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Generic programming\")])]),_c('li',[_c('p',[_vm._v(\"Type constraints\")])]),_c('li',[_c('p',[_vm._v(\"Type parameters\")])]),_c('li',[_c('p',[_vm._v(\"Function\")])]),_c('li',[_c('p',[_vm._v(\"Method\")])]),_c('li',[_c('p',[_vm._v(\"Interface\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"introduction\"}}),_c('h1',{attrs:{\"data-number\":\"2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"2\")]),_vm._v(\" Introduction \"),_c('a',{attrs:{\"href\":\"#introduction\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Since Go’s first release, the community’s need for generics has been strong. As mentioned by Ian Lance Taylor in a talk that a Go user requested it in November 2009\"),_c('a',{staticClass:\"footnote-ref\",attrs:{\"href\":\"#fn1\",\"id\":\"fnref1\",\"role\":\"doc-noteref\"}},[_c('sup',[_vm._v(\"1\")])]),_vm._v(\"! The Go team introduced Generics 1.18 version that was released in March 2022\"),_c('a',{staticClass:\"footnote-ref\",attrs:{\"href\":\"#fn2\",\"id\":\"fnref2\",\"role\":\"doc-noteref\"}},[_c('sup',[_vm._v(\"2\")])])]),_c('p',[_vm._v(\"In this chapter, we will cover the topic of generics.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"what-does-generic-mean\"}}),_c('h1',{attrs:{\"data-number\":\"3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"3\")]),_vm._v(\" What does generic mean? \"),_c('a',{attrs:{\"href\":\"#what-does-generic-mean\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"If we refer to the Cambridge Dictionary, the adjective generic means: relating to or shared by a whole group of similar things; not specific to any particular thing.\")]),_c('p',[_vm._v(\"Here is an example usage that will make you understand the notion: Jazz is a generic term for a wide range of different styles of music..\")]),_c('p',[_vm._v(\"If we come back to programming, we can create, for instance, generic functions that will not bind to a specific type of input/output parameters.\")]),_c('p',[_vm._v(\"When I build a function in Go, I need to specify the type I use for my input parameters and my results. Usually, a function will work for a specific type, for instance, an \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int64\")])]),_vm._v(\".\")]),_c('p',[_vm._v(\"Let’s take a simple example :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\n// max function returns the maximum between two numbers\\nfunc max(a, b int64) int64 {\\n if a > b {\\n return a\\n }\\n return b\\n}\")])]),_c('p',[_vm._v(\"This max function will only work if you input numbers of type int64 :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\nvar a, b int64 = 42, 23\\nfmt.Println(max(a, b))\\n// 42\")])]),_c('p',[_vm._v(\"But let’s imagine now that you have numbers of type int32, they are integers, but the type is not int64. If you attempt to feed the max function with int32 numbers, your program will not compile. And this is very fine; int32 and int64 are not the same types.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\nvar c, d int32 = 12, 376\\n// DOES NOT COMPILE\\nfmt.Println(max(c, d))\\n// ./main.go:10:18: cannot use c \\n// (variable of type int32) as type int64 in argument to max\\n// ./main.go:10:21: cannot use d \\n// (variable of type int32) as type int64 in argument to max\")])]),_c('p',[_vm._v(\"The idea behind generics is to make that function work for int, int32, int64 but also unsigned integers: uint, uint8, uint16, uint32. Those types are different, but they all share something particular we can compare them the same way.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"why-do-we-need-generics\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"4\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"4\")]),_vm._v(\" Why do we need generics? \"),_c('a',{attrs:{\"href\":\"#why-do-we-need-generics\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"We can use this definition from \"),_c('b-link',{staticClass:\"citation\",attrs:{\"data-cites\":\"jazayeri2003generic\",\"href\":\"#jazayeri2003generic\"}},[_vm._v(\"[@jazayeri2003generic]\")]),_vm._v(\", which I find quite clear: The goal of generic programming is to express algorithms and data structures in a broadly adaptable, interoperable form that allows their direct use in software construction.\")],1),_c('p',[_vm._v(\"We now understand that generic programming aims to write interoperable and adaptable code. But what does it mean to have an interoperable code?\")]),_c('p',[_vm._v(\"It means that we want to be able to use the same function for different types that share some common capabilities.\")]),_c('p',[_vm._v(\"Let’s come back to our previous example: the max function. We could write different versions of it for each integer type. One for uint, one for \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"uint8\")])]),_vm._v(\", one for \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int32\")])]),_vm._v(\", etc...\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\n// maxInt32 function works only for int32\\nfunc maxInt32(a, b int32) int32 {\\n if a > b {\\n return a\\n }\\n return b\\n}\\n\\n// maxUint32 function works only for uint32\\nfunc maxUint32(a, b uint32) uint32 {\\n if a > b {\\n return a\\n }\\n return b\\n}\")])]),_c('p',[_vm._v(\"Writing the same function over and over will work, but it is ineffective; why not just one function that will work for all integers? Generics is the language feature that allows that.\")]),_c('p',[_vm._v(\"Here is the generic version of our \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"max\")])]),_vm._v(\" function:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\nfunc maxGeneric[T constraints.Ordered](a, b T) T {\\n if a > b {\\n return a\\n }\\n return b\\n}\")])]),_c('p',[_vm._v(\"And we can use this function like that :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\nfmt.Println(maxGeneric[int64](a, b))\\n// 42\\nfmt.Println(maxGeneric[int32](c, d))\\n// 376\")])]),_c('p',[_vm._v(\"Or even like that :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\nfmt.Println(maxGeneric(a, b))\\nfmt.Println(maxGeneric(c, d))\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"but-we-already-have-the-empty-interface-why-do-we-need-those-generics\"}}),_c('h1',{attrs:{\"data-number\":\"5\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"5\")]),_vm._v(\" But we already have the empty interface; why do we need those generics? \"),_c('a',{attrs:{\"href\":\"#but-we-already-have-the-empty-interface-why-do-we-need-those-generics\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Do you remember the empty interface:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"interface{} \")])]),_c('p',[_vm._v(\"All types implement the empty interface. It means that I can define a new max function that accepts as input elements of type empty interface and returns elements of type empty interface :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\n\\nfunc maxEmptyInterface(a, b interface{}) interface{} {\\n if a > b {\\n return a\\n }\\n return b\\n}\")])]),_c('p',[_vm._v(\"Can I do that? No! The program will not compile. We will have the following error :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"./main.go:64:5: invalid operation: a > b (operator > not defined on interface) \")])]),_c('p',[_vm._v(\"The empty interface does not define the operator greater than (\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\">\")])]),_vm._v(\"). And we touch here on an important particularity of types: one type can define behaviors, and those behaviors are methods but also operators.\")]),_c('p',[_vm._v(\"You might ask yourself what exactly an operator is. An operator combines operands. The most known are the ones you can use to compare things :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\">, ==, !=, <\")])]),_c('p',[_vm._v(\"When we write:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"A > B \")])]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"A\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"B\")])]),_vm._v(\" are operands, and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\">\")])]),_vm._v(\" is the operator.\")]),_c('p',[_vm._v(\"So we cannot use the empty interface because it says nothing, and by the way, with Go 1.18, the empty interface now has an alias: any. Instead of using \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"interface{}\")])]),_vm._v(\" you can use any. It will be the same, but please remember that there is a good old empty interface behind any.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"type-parameters-a-way-to-parametrize-functions-methods-and-types.\"}}),_c('h1',{attrs:{\"data-number\":\"6\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"6\")]),_vm._v(\" Type Parameters: a way to parametrize functions, methods, and types. \"),_c('a',{attrs:{\"href\":\"#type-parameters-a-way-to-parametrize-functions-methods-and-types.\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Go developers added a new feature to the language named \"),_c('strong',[_vm._v(\"Type Parameters\")]),_vm._v(\".\")]),_c('p',[_vm._v(\"We can create generic functions or methods by adding type parameters. We use square brackets to add \"),_c('strong',[_vm._v(\"type parameters\")]),_vm._v(\" to a regular function. We say we have a generic function/method if we have type parameters.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/first/main.go\\npackage main\\n\\nimport (\\n \\\"golang.org/x/exp/constraints\\\"\\n)\\n\\nfunc maxGeneric[T constraints.Ordered](a, b T) T {\\n if a > b {\\n return a\\n }\\n return b\\n}\")])]),_c('p',[_vm._v(\"In the previous snippet, the function maxGeneric is generic. It has one type parameter named T of type constraint constraints.Ordered. This type comes from the package constraints that the Go team provides.\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/generic-function.jpg'),\"alt\":\"A generic function with type parameters\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"A generic function with type parameters\")])],1),_c('p',[_vm._v(\"Let’s align on some vocabulary :\")]),_c('ul',[_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"[T constraints.Ordered]\")])]),_vm._v(\" is the type parameter list.\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\" is the type parameter identifier (or name)\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"constraints.Ordered\")])]),_vm._v(\" is the type constraint.\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T constraints.Ordered\")])]),_vm._v(\" is a type parameter declaration.\")])]),_c('li',[_c('p',[_vm._v(\"Note that the identifier of the \"),_c('strong',[_vm._v(\"type parameter\")]),_vm._v(\" is positioned \"),_c('u',[_vm._v(\"before\")]),_vm._v(\" the \"),_c('strong',[_vm._v(\"type constraint\")]),_vm._v(\".\")])])]),_c('p',[_vm._v(\"A generic function has a list of type parameters. Each type parameter has a type constraint, just as each ordinary parameter has a type\"),_c('a',{staticClass:\"footnote-ref\",attrs:{\"href\":\"#fn3\",\"id\":\"fnref3\",\"role\":\"doc-noteref\"}},[_c('sup',[_vm._v(\"3\")])]),_vm._v(\".\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/generic-two-type-parameters.jpg'),\"alt\":\"A generic function can have several type parameters\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"A generic function can have several type parameters\")])],1),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"what-is-a-type-constraint\"}}),_c('h1',{attrs:{\"data-number\":\"7\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"7\")]),_vm._v(\" What is a type constraint? \"),_c('a',{attrs:{\"href\":\"#what-is-a-type-constraint\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"A type constraint (example \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"constraints.Ordered\")])]),_vm._v(\") is an interface that defines the set of permissible type arguments for the respective type parameter and controls the operations supported by values of that type parameter.\"),_c('b-link',{staticClass:\"citation\",attrs:{\"data-cites\":\"go-specs\",\"href\":\"#go-specs\"}},[_vm._v(\"[@go-specs]\")]),_vm._v(\".\")],1),_c('p',[_vm._v(\"The type(s) constraint(s) will restrain the types we can use in our generic function. It gives you the info: can I use this specific type in this generic function.\")]),_c('p',[_vm._v(\"This definition is a bit hard, but in reality, it’s not that complex; let’s decompose it:\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"It should be an interface\")])]),_c('li',[_c('p',[_vm._v(\"In this interface, we define \"),_c('strong',[_vm._v(\"the set of permissible type arguments\")]),_vm._v(\", all types we can use for this parameter.\")])]),_c('li',[_c('p',[_vm._v(\"It also dictates the operations supported by values of that type.\")])])]),_c('p',[_vm._v(\"After seeing the theory, let’s take a look at what a type constraint looks like in reality :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// Ordered is a constraint that permits any ordered type: any type\\n// that supports the operators < <= >= >.\\n// If future releases of Go add new ordered types,\\n// this constraint will be modified to include them.\\ntype Ordered interface {\\n Integer | Float | ~string\\n}\")])]),_c('p',[_vm._v(\"So we can see that inside this interface, we do not have methods. Like we have in a traditional interface. Instead of methods, we have one line :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"Integer | Float | ~string\")])]),_c('p',[_vm._v(\"You have three elements separated by the pipe character: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"|\")])]),_vm._v(\". This character represents a union. We name type terms the elements that form that union. \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Integer\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Float\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\" are type terms.\")]),_c('p',[_vm._v(\"A type term is either :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"A single type\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"example: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Integer\")])])])]),_c('li',[_c('p',[_vm._v(\"It can be a predeclared type or another type\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Here, for instance, \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\" is a predeclared type (It exists in the language by default, like \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"uint8\")])]),_vm._v(\", .…)\")])]),_c('li',[_c('p',[_vm._v(\"And for instance, we can have \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Integer\")])]),_vm._v(\" which is a type that we created.\")])]),_c('li',[_c('p',[_vm._v(\"Let’s take an example of that with the type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Foo\")])]),_vm._v(\" :\")])])])])])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type Foo interface {\\n int | int8\\n}\")])]),_c('ul',[_c('li',[_c('p',[_vm._v(\"An underlying type\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"example: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~uint8\")])])])]),_c('li',[_c('p',[_vm._v(\"You can note the additional tilde \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~\")])]),_vm._v(\" here.\")])]),_c('li',[_c('p',[_vm._v(\"The tilde denotes all the types that have a specific underlying type.\")])]),_c('li',[_c('p',[_vm._v(\"Generally, we do not target a specific type like \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])]),_vm._v(\" even if we can do that; we will prefer to target all the other types that can exist with the underlying type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])]),_vm._v(\". By doing so, we cover more types.\")])]),_c('li',[_c('p',[_vm._v(\"For example: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\" denotes all the types that have the underlying type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\":\")])])])])]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type DatabaseDSN string \")])]),_c('p',[_vm._v(\"This type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"DatabaseDSN\")])]),_vm._v(\" is a new type, but the underlying type is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\", so as a consequence, this type fits into \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\".\")]),_c('p',[_vm._v(\"Let’s take another example to make sure you understand:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type PrimaryKey uint \")])]),_c('p',[_vm._v(\"This type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"PrimaryKey\")])]),_vm._v(\" is a new type, but the underlying type is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"uint\")])]),_vm._v(\", so as a consequence, this type fits into \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~uint\")])]),_vm._v(\".\")]),_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~uint\")])]),_vm._v(\" represents all types with an underlying type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"uint\")])]),_vm._v(\".\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/generics-type-constraint.jpg'),\"alt\":\"An example of type constraints\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"An example of type constraints\")])],1),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"type-constraints-that-you-can-use-right-away\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"8\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"8\")]),_vm._v(\" Type constraints that you can use right away \"),_c('a',{attrs:{\"href\":\"#type-constraints-that-you-can-use-right-away\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"We have the module golang.org/x/exp/constraints that we can use right away that contains useful type constraints :\")]),_c('p',[_vm._v(\"You will need first to import the package into your code with:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"go get golang.org/x/exp/constraints \")])]),_c('p',[_vm._v(\"Then you can use all the constraints.\")]),_c('ul',[_c('li',[_c('p',[_c('strong',[_vm._v(\"Signed\")]),_vm._v(\": all signed integers\")]),_c('ul',[_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int | ~int8 | ~int16 | ~int32 | ~int64\")])])])]),_c('li',[_c('p',[_vm._v(\"ex: -10, 10\")])])])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Unsigned\")]),_vm._v(\": all signed integers\")]),_c('ul',[_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr\")])])])]),_c('li',[_c('p',[_vm._v(\"ex: 42\")])])])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Integer\")]),_vm._v(\", the union of Signed and Unsigned\")]),_c('ul',[_c('li',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Signed | Unsigned\")])])])])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Float\")]),_vm._v(\" all floating point numbers\")]),_c('ul',[_c('li',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~float32 | ~float64\")])])])])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Complex\")]),_vm._v(\" all complex numbers\")]),_c('ul',[_c('li',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~complex64 | ~complex128\")])])])])]),_c('li',[_c('p',[_c('strong',[_vm._v(\"Ordered\")]),_vm._v(\" all types that we can order\")]),_c('ul',[_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Integer | Float | ~string\")])])])]),_c('li',[_c('p',[_vm._v(\"As you note here, this is the union between three types integers, float, and strings\")])])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"how-to-call-a-generic-function-or-method\"}}),_c('h1',{attrs:{\"data-number\":\"9\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"9\")]),_vm._v(\" How to call a generic function or method? \"),_c('a',{attrs:{\"href\":\"#how-to-call-a-generic-function-or-method\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Let’s take our example function maxGeneric again:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func maxGeneric[T constraints.Ordered](a, b T) T {...} \")])]),_c('p',[_vm._v(\"We have seen in the previous example that to call our maxGeneric we needed to specify the argument type:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"var a, b int64 = 42, 23 \\nmaxGeneric[int64](a, b)\")])]),_c('p',[_vm._v(\"It is clear here that the type of T is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int64\")])]),_vm._v(\" since we manipulate \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int64\")])]),_vm._v(\". Why is it important for the language to determine the type of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\", the type of the type parameter? That’s because, in any part of our program, we need to have variables that have a type. When we define our generic function, we add a type parameter that constrains the types we can use. When I define my \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"maxGeneric\")])]),_vm._v(\" function, I only know that I can order the arguments passed to my function. It does not say much more.\")]),_c('p',[_vm._v(\"When we want to use the function, Go needs to determine what will be concretely the type that we will manipulate. At runtime, the program work on concrete, specific types, not a formal constraint, not a catalog of every type possible.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"type-inference-enjoy-being-lazy\"}}),_c('h1',{attrs:{\"data-number\":\"10\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"10\")]),_vm._v(\" Type inference: enjoy being lazy \"),_c('a',{attrs:{\"href\":\"#type-inference-enjoy-being-lazy\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In the previous snippet, we used :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"maxGeneric[int64](a, b) \")])]),_c('p',[_vm._v(\"but we can also directly write:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"var a, b int64 = 42, 23\\nmaxGeneric(a, b)\")])]),_c('p',[_vm._v(\"In the last snippet, we did not specify the type parameter of a and b; we let the language infer the type parameter (the type of \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\"). Go will attempt to determine the type parameter based on the context.\")]),_c('p',[_vm._v(\"This type parameter inference is done at compile time and not runtime.\")]),_c('p',[_vm._v(\"Note that type parameter inference might not be possible in some cases. We will not deep dive into those exceptions. Most of the time, inference will work, and you will not have to think about it. In addition, there is a strong safeguard because the compiler checks inference.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"types-can-also-have-a-type-parameter-list\"}}),_c('h1',{attrs:{\"data-number\":\"11\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"11\")]),_vm._v(\" Types can also have a type parameter list! \"),_c('a',{attrs:{\"href\":\"#types-can-also-have-a-type-parameter-list\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Let’s take an example. Let’s say you want to create a specific type representing all maps with comparable keys and integer values.\")]),_c('p',[_vm._v(\"We can create a parametrized custom type :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/types\\ntype GenericMap[K constraints.Ordered, V constraints.Integer] map[K]V\")])]),_c('p',[_vm._v(\"We have a new type, \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"GenericMap\")])]),_vm._v(\", with a parameter list composed of 2 parameter types: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"K\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"V\")])]),_vm._v(\". The first parameter type (\"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"K\")])]),_vm._v(\") has the constraint ordered; the second parameter type has the type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"constraints.Integer\")])]),_vm._v(\".\")]),_c('p',[_vm._v(\"This new type has an underlying type which is a \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"map\")])]),_vm._v(\". Note that we can also create generic type structs (see figure).\")]),_c('figure',[_c('b-img',{staticClass:\"img-book\",attrs:{\"src\":require('@/assets/images/generic-type-struct.jpg'),\"alt\":\"A generic type struct\",\"fluid\":\"\",\"thumbnail\":\"\"}}),_c('figcaption',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"A generic type struct\")])],1),_c('p',[_vm._v(\"Why create this new type? We already can create a map with a specific concrete type... The idea is to use that type to build function/methods that can be used on a lot of different map types: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"map[string]int32\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"map[string]uint8\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"map[int]int\")])]),_vm._v(\",... etc. For instance, summing all the values in the map:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/types\\n\\nfunc (m GenericMap[K, V]) sum() V {\\n var sum V\\n for _, v := range m {\\n sum = sum + v\\n }\\n return sum\\n}\")])]),_c('p',[_vm._v(\"Then we can create two new variables of this type :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/types\\n\\nm := GenericMap[string, int]{\\n \\\"foo\\\": 42,\\n \\\"bar\\\": 44,\\n}\\n\\nm2 := GenericMap[float32, uint8]{\\n 12.5: 0,\\n 2.2: 23,\\n}\")])]),_c('p',[_vm._v(\"And then we can use the feature!\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/types\\n\\nfmt.Println(m.sum())\\n// 86\\nfmt.Println(m2.sum())\\n// 23\")])]),_c('p',[_vm._v(\"But let’s say now I want to create a new variable of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"map[string]uint\")])]),_vm._v(\":\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/types\\n\\nm3 := map[string]uint{\\n \\\"foo\\\": 10,\\n}\")])]),_c('p',[_vm._v(\"Can I also benefit from the sum method? Can I do that :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"fmt.Println(m3.sum()) \")])]),_c('p',[_vm._v(\"The answer is no; that’s because the sum is only defined on elements of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"GenericMap\")])]),_vm._v(\". Fulfilling the constraints is insufficient; we will need to convert it to a \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"GenericMap\")])]),_vm._v(\". And it is done like that :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"m4 := GenericMap[string, uint](m3)\\nfmt.Println(m4.sum())\")])]),_c('p',[_vm._v(\"We use parenthesis to convert \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"m3\")])]),_vm._v(\" to a valid \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"GenericMap\")])]),_vm._v(\". Please note that you will need to provide the parameter list and explicitly state the types \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"string\")])]),_vm._v(\" and \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"uint\")])]),_vm._v(\" in this case.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"when-is-it-a-good-idea-to-use-generics\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"12\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"12\")]),_vm._v(\" When is it a good idea to use generics? \"),_c('a',{attrs:{\"href\":\"#when-is-it-a-good-idea-to-use-generics\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"In the next two sections, I will replicate some advice given by Ian Lance Taylor in a talk given about generics when they came out\"),_c('a',{staticClass:\"footnote-ref\",attrs:{\"href\":\"#fn4\",\"id\":\"fnref4\",\"role\":\"doc-noteref\"}},[_c('sup',[_vm._v(\"4\")])]),_vm._v(\".\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"first-use-case-when-you-write-almost-the-same-function-several-times\"}}),_c('h2',{attrs:{\"data-number\":\"12.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"12.1\")]),_vm._v(\" First use case: when you write almost the same function several times \"),_c('a',{attrs:{\"href\":\"#first-use-case-when-you-write-almost-the-same-function-several-times\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When you write a method/function several times, the only thing that changes is the input/output type. In that case, you can write a generic function/method. You can replace a bunch of functions/methods with one generic construct!\")]),_c('p',[_vm._v(\"Let’s take an example:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/use-cases/same-fct2\\n\\nfunc containsUint8(needle uint8, haystack []uint8) bool {\\n for _, v := range haystack {\\n if v == needle {\\n return true\\n }\\n }\\n return false\\n}\\n\\nfunc containsInt(needle int, haystack []int) bool {\\n for _, v := range haystack {\\n if v == needle {\\n return true\\n }\\n }\\n return false\\n}\")])]),_c('p',[_vm._v(\"Here we have two functions that check if an element is in a slice. What is changing between those two functions? The type of the slice element. This is a perfect use case to build a generic function!\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/use-cases/same-fct2\\n\\nfunc contains[E constraints.Ordered](needle E, haystack []E) bool {\\n for _, v := range haystack {\\n if v == needle {\\n return true\\n }\\n }\\n return false\\n}\")])]),_c('p',[_vm._v(\"We have created a generic function named contains. This function has one type parameter of type \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"constraints.Ordered\")])]),_vm._v(\". This means we can compare the two elements of the slice because we can use the operator \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"==\")])]),_vm._v(\" with types that fulfill this constraint.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"second-use-case-on-collection-types-slices-maps-arrays\"}}),_c('h2',{attrs:{\"data-number\":\"12.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"12.2\")]),_vm._v(\" Second use case: on collection types : (slices, maps, arrays) \"),_c('a',{attrs:{\"href\":\"#second-use-case-on-collection-types-slices-maps-arrays\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"When manipulating collection types in function, methods, or types, you might need to use generic. Some libraries have emerged to propose you generic collection types. We will discover some libraries in another section.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"third-use-case-data-structures\"}}),_c('h2',{attrs:{\"data-number\":\"12.3\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"12.3\")]),_vm._v(\" Third use case: data structures \"),_c('a',{attrs:{\"href\":\"#third-use-case-data-structures\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"To understand this use case, we have to understand the definition of data structures (if you have never come across this) :\")]),_c('p',[_vm._v(\"If we take the definition from Wikipedia: a data structure is a data organization, management, and storage format that is usually chosen for efficient access to data. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.\")]),_c('p',[_vm._v(\"So a data structure is a way to store and organize data. And this data structure is also shipped with functions/operations that we can use on it.\")]),_c('p',[_vm._v(\"The most common data structure we have seen is the map. A map allows us to store some data in a particular way, to retrieve and eventually delete it.\")]),_c('p',[_vm._v(\"But there is a lot more than maps :\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"The linked list: each element in this list points to the next one\")]),_c('ul',[_c('li',[_vm._v(\"the context package is built around this data structure (see the chapter about context)\")])])]),_c('li',[_c('p',[_vm._v(\"The binary tree is a data structure that uses the graph theory, each element (called a node) has at most two children nodes.\")]),_c('ul',[_c('li',[_vm._v(\"this data structure is used especially in search algorithms\")])])]),_c('li',[_c('p',[_vm._v(\"... many more data structures exist in computer science\")])])]),_c('p',[_vm._v(\"Why does it make sense to have a generic linked list? It makes sense because the data structure does not depend on what type of data you want to store. If you want to store integers in a linked list, the internals of the linked list will not differ from those operating on strings.\")]),_c('p',[_vm._v(\"There is one interesting package that I discovered: https://github.com/zyedidia/generic. It covers a lot of data structures, do not hesitate to take a look at it.\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"when-its-not-a-good-idea-to-use-generics\"}}),_c('h1',{attrs:{\"data-number\":\"13\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"13\")]),_vm._v(\" When it’s not a good idea to use generics? \"),_c('a',{attrs:{\"href\":\"#when-its-not-a-good-idea-to-use-generics\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"when-you-can-use-a-basic-interface\"}}),_c('h2',{attrs:{\"data-number\":\"13.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"13.1\")]),_vm._v(\" When you can use a basic interface \"),_c('a',{attrs:{\"href\":\"#when-you-can-use-a-basic-interface\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Sometimes you can use a basic interface to solve your problem, and using an interface makes your code easier to understand, especially for newcomers. Even if it was incomplete, Go before 1.18 already had a form of generic programming with interfaces. If you want a function to be used by ten types, check what you need those types to be capable of, then create an interface and implement it on your ten types.\")]),_c('p',[_vm._v(\"Let’s take an example. Let’s say you have to save some data in a database. We use for that DynamoDb, an AWS database solution.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"// generics/dynamo/main.go\\n\\nfunc saveProduct(product Product, client *dynamodb.DynamoDB) error {\\n marshalled, err := dynamodbattribute.MarshalMap(product)\\n if err != nil {\\n return fmt.Errorf(\\\"impossible to marshall product: %w\\\", err)\\n }\\n marshalled[\\\"PartitionKey\\\"] = &dynamodb.AttributeValue{\\n S: aws.String(\\\"product\\\"),\\n }\\n marshalled[\\\"SortKey\\\"] = &dynamodb.AttributeValue{\\n S: aws.String(product.ID),\\n }\\n input := &dynamodb.PutItemInput{\\n Item: marshalled,\\n TableName: aws.String(tableName),\\n }\\n _, err = client.PutItem(input)\\n if err != nil {\\n return fmt.Errorf(\\\"impossible to save item in db: %w\\\", err)\\n }\\n return nil\\n}\")])]),_c('p',[_vm._v(\"Here we want to save a product. And to save it into DynamoDb, we need to get the item’s partition key and sort key. Those two keys are mandatory. So here, for the partition key, we use the string product and for the sort key, we use the product’s id.\")]),_c('p',[_vm._v(\"But now, let’s say that I want to persist a category :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type Category struct {\\n ID string\\n Title string\\n}\")])]),_c('p',[_vm._v(\"I will need to create a new function to store it inside my DB. Because the first method is specific to the type product.\")]),_c('p',[_vm._v(\"The solution here can be to create an interface. This interface will define a method to retrieve the partition key and the sort key :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type Storable interface {\\n PartitionKey() string\\n SortKey() string\\n}\")])]),_c('p',[_vm._v(\"Then we can create a second version of our function.\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"func save(s Storable, client *dynamodb.DynamoDB) error {\\n marshalled, err := dynamodbattribute.MarshalMap(s)\\n if err != nil {\\n return fmt.Errorf(\\\"impossible to marshall product: %w\\\", err)\\n }\\n marshalled[\\\"PartitionKey\\\"] = &dynamodb.AttributeValue{\\n S: aws.String(s.PartitionKey()),\\n }\\n marshalled[\\\"SortKey\\\"] = &dynamodb.AttributeValue{\\n S: aws.String(s.SortKey()),\\n }\\n input := &dynamodb.PutItemInput{\\n Item: marshalled,\\n TableName: aws.String(tableName),\\n }\\n _, err = client.PutItem(input)\\n if err != nil {\\n return fmt.Errorf(\\\"impossible to save item in db: %w\\\", err)\\n }\\n return nil\\n}\")])]),_c('p',[_vm._v(\"We call the interface methods instead of relying on fields from the type. Then to use that function, we simply have to implement the interface on the product and category types :\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"type Product struct {\\n ID string\\n Title string\\n}\\n\\nfunc (p Product) PartitionKey() string {\\n return \\\"product\\\"\\n}\\n\\nfunc (p Product) SortKey() string {\\n return p.ID\\n}\\n\\ntype Category struct {\\n ID string\\n Title string\\n}\\n\\nfunc (c Category) PartitionKey() string {\\n return \\\"category\\\"\\n}\\n\\nfunc (c Category) SortKey() string {\\n return c.ID\\n}\")])]),_c('p',[_vm._v(\"And we can call save inside our program:\")]),_c('pre',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\"}},[_vm._v(\"err := saveProduct(teaPot, svc)\\nif err != nil {\\n panic(err)\\n}\\nerr = save(teaPot, svc)\\nif err != nil {\\n panic(err)\\n}\")])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"when-the-implementation-of-a-method-is-different-for-each-type\"}}),_c('h2',{attrs:{\"data-number\":\"13.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"13.2\")]),_vm._v(\" When the implementation of a method is different for each type \"),_c('a',{attrs:{\"href\":\"#when-the-implementation-of-a-method-is-different-for-each-type\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"It makes sense to use generics when the implementation is the same, but when the implementation is different, you have to write different functions for each implementation. Do not force generics into your code!\")]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"some-generics-libraries-that-you-can-use-in-your-code\"}}),_c('h1',{attrs:{\"data-number\":\"14\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"14\")]),_vm._v(\" Some generics libraries that you can use in your code \"),_c('a',{attrs:{\"href\":\"#some-generics-libraries-that-you-can-use-in-your-code\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('p',[_vm._v(\"Here is a non-exhaustive list of libraries where you can use some interesting generic function methods:\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"https://github.com/zyedidia/generic : Provides a wide range of data structures ready to use\")])]),_c('li',[_c('p',[_vm._v(\"https://github.com/samber/lo: a library that implements a lot of useful functions in the style of lodash (a famous javascript library)\")])]),_c('li',[_c('p',[_vm._v(\"https://github.com/deckarep/golang-set: a library that provides a Set data structure that is fairly easy to use.\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"test-yourself\"}}),_c('h1',{attrs:{\"data-number\":\"15\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"15\")]),_vm._v(\" Test yourself \"),_c('a',{attrs:{\"href\":\"#test-yourself\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"questions\"}}),_c('h2',{attrs:{\"data-number\":\"15.1\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"15.1\")]),_vm._v(\" Questions \"),_c('a',{attrs:{\"href\":\"#questions\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"What does the character tilde \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~\")])]),_vm._v(\" mean in \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int\")])]),_vm._v(\"?\")])]),_c('li',[_c('p',[_vm._v(\"What does the character pipe \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"|\")])]),_vm._v(\" mean in \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int | string\")])]),_vm._v(\"?\")])]),_c('li',[_c('p',[_vm._v(\"The empty interface has been replaced in Go 1.18 by \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"any\")])]),_vm._v(\". True or False?\")])]),_c('li',[_c('p',[_vm._v(\"When you call a generic function, you have to specify the type argument(s) you will use. Ex: I have to write \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"myFunc[int, string](a,b)\")])]),_vm._v(\". True or false?\")])]),_c('li',[_c('p',[_vm._v(\"Fill the blank. Let’s define the following function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"foo[T ~string](bar T) T\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\" is a ________ with a ________ denoted \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\".\")])]),_c('li',[_c('p',[_vm._v(\"Type parameters only exist for functions and methods. True or false?\")])]),_c('li',[_c('p',[_vm._v(\"A type constraint can be a type struct. True or False?\")])]),_c('li',[_c('p',[_vm._v(\"Define the term type constraint.\")])]),_c('li',[_c('p',[_vm._v(\"Fill the blank. Generic functions may only _______ permitted by their type constraints.\")])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"answers\"}}),_c('h2',{attrs:{\"data-number\":\"15.2\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"15.2\")]),_vm._v(\" Answers \"),_c('a',{attrs:{\"href\":\"#answers\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"What does the character tilde \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~\")])]),_vm._v(\" mean in \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int\")])]),_vm._v(\"?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int\")])]),_vm._v(\" denotes the int type by itself and also any named types whose underlying types are int\")])]),_c('li',[_c('p',[_vm._v(\"ex: \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"type Score int\")])]),_vm._v(\" belongs to \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int\")])])])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"Score\")])]),_vm._v(\" is a named type, and its underlying type is \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"int\")])])])])])]),_c('li',[_c('p',[_vm._v(\"What does the character pipe \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"|\")])]),_vm._v(\" mean in \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int | string\")])]),_vm._v(\"?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"It means union\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~int | string\")])]),_vm._v(\" means all strings OR the int type by itself and also any named types whose underlying types are int\")])])])]),_c('li',[_c('p',[_vm._v(\"The empty interface has been replaced in Go 1.18 by \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"any\")])]),_vm._v(\". True or False?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"False\")])]),_c('li',[_c('p',[_vm._v(\"It has not been replaced. Imagine if it were the case, it would have broken a lot of existing programs and libraries!\")])]),_c('li',[_c('p',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"any\")])]),_vm._v(\" is an alias to the empty interface; it means the same thing. You can use any instead of interface{} and vice versa.\")])])])]),_c('li',[_c('p',[_vm._v(\"When you call a generic function, you have to specify the type argument(s) you will use. Ex: I have to write \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"myFunc[int, string](a,b)\")])]),_vm._v(\". True or false?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"This is usually false, but it can be true sometimes. Why?\")])]),_c('li',[_c('p',[_vm._v(\"When you provide the type parameters in your function call, you do not let the Go compiler infer those.\")])]),_c('li',[_c('p',[_vm._v(\"Go can infer those.\")])])])]),_c('li',[_c('p',[_vm._v(\"Fill the blank. Let’s define the following function \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"foo[T ~string](bar T) T\")])]),_vm._v(\", \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\" is a ________ with a ________ denoted \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\".\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"T\")])]),_vm._v(\"is a \"),_c('strong',[_vm._v(\"type parameter\")]),_vm._v(\" with a \"),_c('strong',[_vm._v(\"type constraint\")]),_vm._v(\" denoted \"),_c('span',{directives:[{name:\"highlightjs\",rawName:\"v-highlightjs\"}]},[_c('code',{pre:true,attrs:{\"class\":\"go\",\"style\":\"display: inline\"}},[_vm._v(\"~string\")])]),_vm._v(\".\")])])]),_c('li',[_c('p',[_vm._v(\"Type parameters only exist for functions and methods. True or false?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"False; they also exist for types; you can build a generic type with Go.\")])])]),_c('li',[_c('p',[_vm._v(\"A type constraint can be a type struct. True or False?\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"False.\")])]),_c('li',[_c('p',[_vm._v(\"A type constraint should be an interface.\")])])])]),_c('li',[_c('p',[_vm._v(\"Define the term type constraint.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_vm._v(\"A type constraint is an interface that defines the set of permissible type arguments for the respective type parameter and controls the operations supported by values of that type parameter. (from the Go specs)\")])])]),_c('li',[_c('p',[_vm._v(\"Fill the blank. Generic functions may only _______ permitted by their type constraints.\")]),_c('ol',{attrs:{\"type\":\"1\"}},[_c('li',[_c('p',[_vm._v(\"Generic functions may only use types permitted by their type constraints.\")])]),_c('li',[_c('p',[_vm._v(\"A type constraint allows only certain types; they constrain the types that can be used by a generic function/method/type.\")])])])])]),_c('div',{staticClass:\"anchor\",attrs:{\"id\":\"key-takeways\"}}),_c('BuyCopyInvite'),_c('h1',{attrs:{\"data-number\":\"16\"}},[_c('span',{staticClass:\"header-section-number\"},[_vm._v(\"16\")]),_vm._v(\" Key Takeways \"),_c('a',{attrs:{\"href\":\"#key-takeways\"}},[_c('b-icon-link45deg',{staticClass:\"heading-link-icon\",attrs:{\"font-scale\":\"0.7\"}})],1)]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Functions and methods can be generic.\")])]),_c('li',[_c('p',[_vm._v(\"A function/method is generic if it provides a type parameter list.\")])]),_c('li',[_c('p',[_vm._v(\"The type parameter list begins with open square brackets and ends with a closing square bracket.\")])]),_c('li',[_c('p',[_vm._v(\"Generic function: func foo[E myTypeConstraint](myVar E) E { ... }\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"In this function foo, we have one type parameter named E.\")])]),_c('li',[_c('p',[_vm._v(\"This type parameter is of type constraint myTypeConstraint\")])]),_c('li',[_c('p',[_vm._v(\"The type parameter is named E; this is its identifier.\")])]),_c('li',[_c('p',[_vm._v(\"This type parameter is used as an argument and as a result.\")])])])]),_c('li',[_c('p',[_vm._v(\"A type constraint is an interface that defines all the types you can use for a specific type parameter.\")])]),_c('li',[_c('p',[_vm._v(\"We designate the type constraint as a meta-type.\")])]),_c('li',[_c('p',[_vm._v(\"The type constraint is here to answer the question: which type do I have the right to use here?\")])]),_c('li',[_c('p',[_vm._v(\"Inside a type constraint, you can list all the types you allow the user of your function/method/type to use.\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"You can use the pipe (|) character to make a union between type terms\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"We can understand union as a logical OR.\")])]),_c('li',[_c('p',[_vm._v(\"int|string means: int OR string\")])])])]),_c('li',[_c('p',[_vm._v(\"You can use the tilde character (~T) to denote the type T + all types whose underlying type is T.\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"Example: ~int denotes the type int + all the types that have an underlying type equal to int\")])]),_c('li',[_c('p',[_vm._v(\"Example: type DegreeC int, the type DegreeC has an underlying type equal to int. We say that’s a named type.\")])])])])])]),_c('li',[_c('p',[_vm._v(\"When you call a generic function, you might need to provide the actual type of type parameter. But Go has the power to infer it. It is checked at compile time.\")])]),_c('li',[_c('p',[_vm._v(\"We can also build generic types.\")])]),_c('li',[_c('p',[_vm._v(\"When should you think about generics ?\")]),_c('ul',[_c('li',[_c('p',[_vm._v(\"When you write the same function/method several times, the only thing that change is the input/output type.\")])]),_c('li',[_c('p',[_vm._v(\"When you want to use a well-known data structure (ex: binary tree, HashSet,...), you will find existing implementations on the web.\")])]),_c('li',[_c('p',[_vm._v(\"When you work with collection types like maps and slices, this is often (not always) a good use case.\")])])])]),_c('li',[_c('p',[_vm._v(\"It would be best if you did not force generics into your code.\")])]),_c('li',[_c('p',[_vm._v(\"Do not forget that you can still use pure interfaces!\")])])]),_c('section',{staticClass:\"footnotes\",attrs:{\"role\":\"doc-endnotes\"}},[_c('hr'),_c('ol',[_c('li',{attrs:{\"id\":\"fn1\",\"role\":\"doc-endnote\"}},[_c('p',[_vm._v(\"source: https://youtu.be/WzgLqE-3IhY?t=55\"),_c('a',{staticClass:\"footnote-back\",attrs:{\"href\":\"#fnref1\",\"role\":\"doc-backlink\"}},[_vm._v(\"↩︎\")])])]),_c('li',{attrs:{\"id\":\"fn2\",\"role\":\"doc-endnote\"}},[_c('p',[_vm._v(\"source: https://go.dev/project\"),_c('a',{staticClass:\"footnote-back\",attrs:{\"href\":\"#fnref2\",\"role\":\"doc-backlink\"}},[_vm._v(\"↩︎\")])])]),_c('li',{attrs:{\"id\":\"fn3\",\"role\":\"doc-endnote\"}},[_c('p',[_vm._v(\"See https://github.com/golang/go/issues/43651\"),_c('a',{staticClass:\"footnote-back\",attrs:{\"href\":\"#fnref3\",\"role\":\"doc-backlink\"}},[_vm._v(\"↩︎\")])])]),_c('li',{attrs:{\"id\":\"fn4\",\"role\":\"doc-endnote\"}},[_c('p',[_vm._v(\"https://www.youtube.com/watch?v=Pa_e9EeCdy8\"),_c('a',{staticClass:\"footnote-back\",attrs:{\"href\":\"#fnref4\",\"role\":\"doc-backlink\"}},[_vm._v(\"↩︎\")])])])])]),_c('h1',[_vm._v(\"Bibliography\")]),_c('ChapterBibliography',{attrs:{\"chapter-id\":\"Chap38Generics\"}}),_c('b-row',{staticClass:\"ml-1 mr-1 \"},[_c('b-col',{staticClass:\"text-center border mr-1 p-2\"},[_c('router-link',{attrs:{\"to\":{name:'Chap37Context'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Previous\")])])]),_c('p',[_c('small',[_vm._v(\"Context\")])])])],1),_c('b-col',{staticClass:\"text-center border p-1 \"},[_c('router-link',{attrs:{\"to\":{name:'Chap39AnObjectOrientedProgrammingLanguage'}}},[_c('p',[_c('u',[_c('small',[_vm._v(\"Next\")])])]),_c('p',[_c('small',[_vm._v(\"An object oriented programming language ?\")])])])],1)],1),_c('b-row',{staticClass:\"mt-1 ml-1 mr-1\"},[_c('b-col',{staticClass:\"text-center border p-1 \"},[_c('b-link',{attrs:{\"to\":{name:'Home'}}},[_vm._v(\"Table of contents\")])],1)],1),_c('FeedbackInvite'),_c('NewsletterInput'),_c('Footer')],1),_c('b-col')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Chap38Generics.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Chap38Generics.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Chap38Generics.vue?vue&type=template&id=1bf56499&scoped=true&\"\nimport script from \"./Chap38Generics.vue?vue&type=script&lang=js&\"\nexport * from \"./Chap38Generics.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1bf56499\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}