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

> Because I would rather take something ranging from Java’s interface to Haskell’s typeclasses since once implemented, they’ll just work. With comptime types, according to what I’ve read, you’ll have to bring your T to the comptime and find out right then and there if it will work. Without enough foresight it might not.

This was perhaps a bad comparison and I should have compared e.g. Java generics to Zig’s comptime T.



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

Search: