Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


As a Zig programmer I also get to enjoy this, but from the angle of language implementors not caring about type theory


Keyword generics!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: