Go has been a language that prides itself on simplicity and efficiency. However, it has long been criticized for its lack of support for generics. The good news is that with the release of Go 1.18 in early 2022, generics are now officially part of the language. This is a game-changer for Go...
Generics in PHP via PHPDocs If you did not know that you can use Generics in PHP or you do not exactly know how to use it or why you should use it, then the next examples are for you. Type variables via @template The @template tag allows classes and functions to declare a generic type parameter....
It’s been a while that this blog post about Typescript Generics was in my drafts (not sure why) and finally it is out. But before we get into Generics, we should be aware of what makes Types in Typescript exciting. Typescript allows us to type check the code so that errors can be caught during...
Wie man am Titel bereits leicht erraten kann: heute geht es (zum ersten Mal in diesem Blog?) um Java. Genauer: Wie man heterogene Container in Java umsetzen kann. Zunächst zur Idee: Wir wollen eine Klasse Favorites implementieren, in die man seine Lieblingsobjekte speichern und auch wieder abrufen...