4 ms·
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 imp
by anonymoushn 3y 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.
- bobbylarrybobby 3y agoKeyword generics!
- logicchains 3y agoHaskell supports this, but right from the start Rust was always wary of trying to add higher kinded types, which are necessary to support this.
- anonymoushn 3y agoAs a Zig programmer I also get to enjoy this, but from the angle of language implementors not caring about type theory