« * K @dbrattli.bsky.social

Dag Brattli @dbrattli.bsky.social

2026-07-19 12:19 UTC

I like to think about generics as the correlation / locking between two (or more) types. They must all agree on the same T, i.e if a callsite compile time "binds" T to int, then all T must be int. So less "generic" than non-generic e.g object where one object can be int and another one float.

A reply in a thread.

1 likes, 0 reposts, 0 replies

3 Next post4 More from @dbrattli.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup