Why we can't have generics in PHP
Explores the technical and architectural reasons why PHP does not yet support generics, examining three potential implementation methods and their challenges.
Explores the technical and architectural reasons why PHP does not yet support generics, examining three potential implementation methods and their challenges.
An in-depth look at generics in PHP, covering their use beyond collections and how static analyzers implement them via docblocks.
An introduction to generics in PHP, explaining what they are, why PHP lacks them, and their potential future in the language.
Go 1.18 introduces major features like generics, the strings.Cut method, and workspaces for multi-module development.
Explains abstract types and methods in Swift, comparing abstract base classes with protocol-oriented approaches for defining shared interfaces.
An introduction to .NET's Language Integrated Query (LINQ), covering its architecture, generic types, query syntax, and operations for unified data querying.
Explains how to combine Swift protocols using inheritance and type-constrained extensions for flexible, reusable code.
An overview of modern PHP features in 2022, including PHP 8.1's enums, readonly properties, and the growing static analysis ecosystem.
A tutorial on implementing tree data structures in Swift, covering structs, enums, and classes for representing hierarchical data.
A video and transcript explaining how to implement and use generics in PHP via docblocks, with support from PHPStan, Psalm, and PhpStorm.
Explains how to use Swift's generic type constraints with the 'where' keyword to create specialized extensions for types and protocols.
A technical guide on how to correctly type generic React components that use forwardRef in TypeScript for enhanced type safety.
A developer explains and solves a TypeScript error: 'Argument of type 'interface' is not assignable to parameter of type 'interface'' in a generic wrapper function context.
An opinionated guide on improving TypeScript code readability by using descriptive names for generic type parameters instead of single letters.
A proposal to add generic syntax to PHP for static analysis tools, bypassing runtime performance issues by transpiling.
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.