Hacker News new | ask | show | jobs
by kaba0 1612 days ago
Parent just missed the new keyword, and generics can work based on return type as well with the above syntax. It has nothing to do with erasure, we are at compile time.