Generics aren't ready for Go
An opinion piece arguing that Go's conservative design and lack of generics is a strength, not a missing feature, and that innovation should come from first principles.
An opinion piece arguing that Go's conservative design and lack of generics is a strength, not a missing feature, and that innovation should come from first principles.
A guide to TypeScript's built-in generic utility types like Readonly, Partial, and Pick, with code examples.
Explains a common TypeScript generics pitfall when using Angular's HttpClient and how to avoid runtime errors with non-primitive data types.
A historical and technical look at how generics were added to the .NET Framework and C# language, driven by Microsoft Research.
Explains type erasure in Swift, covering its purpose, use cases like AnySequence, and how to implement it to hide concrete types.
Explores a C# code pattern using nested generics that causes exponential compilation time, effectively creating a Denial-of-Service attack on the compiler.
Explores the need for generics in PHP to solve type safety and performance issues with arrays, using blog post collections as an example.
Explores how the Zig language uses 'comptime' to blend compile-time and run-time execution, enabling powerful generics and type-safe metaprogramming.
Explains how to use the Swift Either enum for type-safe handling of two possible value types, with a practical example for table view data sources.
A tutorial on implementing a custom, generic version of Swift's 'if let' optional unwrapping construct to understand how optionals work.
Explains Swift's Optional type, its implementation as an enum, and the importance of understanding it beyond basic nil-checking.
Explores using Java default methods for interface evolution, focusing on challenges with generics when replacing entire interfaces.
A technical guide on resolving runtime generic type parameters in Java, using a custom method for complex inheritance hierarchies.
Explains the principles of subtyping in Java generics, including why generic types like List<Number> are not supertypes of List<Integer>.
Explores Java generics, type erasure, and how to retrieve generic type arguments at runtime despite common misconceptions.
A critical analysis of the Go programming language's design choices, focusing on syntax, lack of generics, and overhyped features like goroutines.
A technical analysis of a bug in DbLinq's non-generic Execute method causing invalid cast exceptions, with details on the submitted patch.
A developer details a Java compiler bug with generic type inference in static factory methods and provides a workaround.
Explores methods to implement generic-like arrays in PHP using inheritance and custom validation functions, as the language lacks native generics.