- Why generalize our set implementation
- Allows code reuse with other element types
 
 - Using the empty interface type
- No restrictions, satisfied by every specifc type
 - Allows code reuse
 - Common solution before Go 1.18
 - Element types can be mixed (often not wanted)
 - No guarantees by the compiler, requires type assertions at runtime
 
 
- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Tutorial code for my video Generics Part 2: Using the empty Interface instead
License
isensee-bastian/set-interface
Folders and files
| Name | Name | Last commit message  | Last commit date  | |
|---|---|---|---|---|
Repository files navigation
About
Tutorial code for my video Generics Part 2: Using the empty Interface instead
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
              Packages 0
        No packages published