Y
Hacker News
new
|
ask
|
show
|
jobs
by
anonymoushn
1017 days ago
It would be swell if functions could be generic over this capability at compile time, so that you could get the same guarantees from the type system without implementing the same protocols more than one time.
2 comments
logicchains
1017 days ago
Haskell supports this, but right from the start Rust was always wary of trying to add higher kinded types, which are necessary to support this.
link
anonymoushn
1017 days ago
As a Zig programmer I also get to enjoy this, but from the angle of language implementors not caring about type theory
link
bobbylarrybobby
1017 days ago
Keyword generics!
link