#generics

[ follow ]
fromHackernoon
1 month ago
OMG science

Everything You Have to Know About Go 1.24 | HackerNoon

Go 1.24 offers notable improvements in generics, performance, tooling, and standard library features, enhancing overall user experience.
#programming
Java
fromInfoWorld
1 month ago

How to handle type erasure in advanced Java generics

Type erasure in Java generics impacts code behavior and performance, but can be navigated with advanced programming techniques.
fromCoady
2 months ago
JavaScript

Go iterators

Go is becoming more similar to Python in terms of reusability and expressiveness with new features.
fromInfoWorld
6 months ago
JavaScript

How to use Java generics to avoid ClassCastExceptions

Type safety issues in generic methods can be resolved using bounded wildcards.
fromHackernoon
3 years ago
JavaScript

Why 'Incomparable Types' in Go Are More Than Just a Compiler Error | HackerNoon

The 'comparable' constraint improves type safety and helps avoid runtime errors in Go generics.
fromMedium
5 months ago
Scala

Universal vs. Existential Types: Is It For All or Existential Crisis?

Universal types allow code to work with any type due to their polymorphic nature, while existential types signify the existence of some unknown types.
Java
fromInfoWorld
1 month ago

How to handle type erasure in advanced Java generics

Type erasure in Java generics impacts code behavior and performance, but can be navigated with advanced programming techniques.
fromCoady
2 months ago
JavaScript

Go iterators

Go is becoming more similar to Python in terms of reusability and expressiveness with new features.
fromInfoWorld
6 months ago
JavaScript

How to use Java generics to avoid ClassCastExceptions

Type safety issues in generic methods can be resolved using bounded wildcards.
fromHackernoon
3 years ago
JavaScript

Why 'Incomparable Types' in Go Are More Than Just a Compiler Error | HackerNoon

The 'comparable' constraint improves type safety and helps avoid runtime errors in Go generics.
fromMedium
5 months ago
Scala

Universal vs. Existential Types: Is It For All or Existential Crisis?

Universal types allow code to work with any type due to their polymorphic nature, while existential types signify the existence of some unknown types.
more#programming
#typescript
Scala
from2ality
2 months ago

The unexpected way in which conditional types constrain type variables in TypeScript

Conditional types in TypeScript constrain generics, providing new insights during type checks and leading to complex results.
Conditional types can produce both true and false due to their distributive nature.
from2ality
2 months ago
JavaScript

Conditional types in TypeScript

Conditional types in TypeScript enhance type decisions and manipulations, particularly with generics and union types.
from2ality
2 months ago
JavaScript

Computing with tuples in TypeScript

TypeScript's tuple types allow for fixed-length sequences of values with different types, enhancing type safety in arrays.
Variadic elements in tuples can be used to spread types at the level of type definitions.
from2ality
2 months ago
JavaScript

Array type notation: `T[]` vs. `Array ` in TypeScript

Both T[] and Array<T> are equivalent notations in TypeScript, with preferences leaning toward Array<T> for readability and clarity.
Scala
from2ality
2 months ago

The unexpected way in which conditional types constrain type variables in TypeScript

Conditional types in TypeScript constrain generics, providing new insights during type checks and leading to complex results.
Conditional types can produce both true and false due to their distributive nature.
from2ality
2 months ago
JavaScript

Conditional types in TypeScript

Conditional types in TypeScript enhance type decisions and manipulations, particularly with generics and union types.
from2ality
2 months ago
JavaScript

Computing with tuples in TypeScript

TypeScript's tuple types allow for fixed-length sequences of values with different types, enhancing type safety in arrays.
Variadic elements in tuples can be used to spread types at the level of type definitions.
from2ality
2 months ago
JavaScript

Array type notation: `T[]` vs. `Array ` in TypeScript

Both T[] and Array<T> are equivalent notations in TypeScript, with preferences leaning toward Array<T> for readability and clarity.
more#typescript
#scala
fromMedium
5 months ago
Scala

Universal Types Want It All, Existential Types Play It Cool: Covariance and Contravariance...

Universal and existential quantifiers in type theory differ in covariance and contravariance, affecting type interactions in Scala generics.
fromMedium
2 months ago
Scala

Bound to Thrill: A Seductive Peek at Scala 3's F-Bounded Type Tangos

F-bounding in Scala type definitions enables expressive modeling of relationships between types.
fromMedium
4 months ago
Scala

A Non-Obvious Variance Question You Might Encounter in a Scala Developer Interview

Variance in Scala facilitates type safety in generics by defining relationships between subtypes and supertypes.
fromMedium
5 months ago
Scala

Universal Types Want It All, Existential Types Play It Cool: Covariance and Contravariance...

Universal and existential quantifiers in type theory differ in covariance and contravariance, affecting type interactions in Scala generics.
fromMedium
2 months ago
Scala

Bound to Thrill: A Seductive Peek at Scala 3's F-Bounded Type Tangos

F-bounding in Scala type definitions enables expressive modeling of relationships between types.
fromMedium
4 months ago
Scala

A Non-Obvious Variance Question You Might Encounter in a Scala Developer Interview

Variance in Scala facilitates type safety in generics by defining relationships between subtypes and supertypes.
more#scala
fromNature
10 months ago
OMG science

Daily briefing: Cheaper versions of drugs like Wegovy are on their way

Lower-cost versions of weight-loss drugs on the way as patents expire.
[ Load more ]