Go 1.18 Generics: Toward the End of a Long Wait
Go 1.18's generic support shows how a language can be reshaped thoughtfully. First impressions and trade-offs.
Category
Features, syntax and practices of the PHP, JavaScript, TypeScript, Go and Python languages. (Page 4/9)
This category has 49 posts.
Go 1.18's generic support shows how a language can be reshaped thoughtfully. First impressions and trade-offs.
PHP 8.1 isn't out yet, but I'm already exploring how the upcoming native enum support and readonly properties will reshape domain modelling.
A practical look at PHP type conversion and coercion: gettype, settype, var_dump, and why strict_types belongs in every file.
Building reusable, type-safe abstractions with generics in TypeScript and making the most of type inference.
A practical approach to embracing error handling as a language idiom in Go, a language with no exception mechanism.
How we represented fixed value sets before PHP 8.1 introduced native enums, and the trade-offs of each approach.