logoalt Hacker News

potamictoday at 5:04 AM1 replyview on HN

> Generics are convenient but they come at a cost in complexity in the type system and run-time.

By run-time they mean compile-time? There shouldn't be a run-time penalty right?

Also, is there some measure of the additional compilation cost now that generics has been added?


Replies

neildtoday at 7:32 AM

The “runtime” as in the compiler runtime which provides the scheduler, garbage collector, etc.

show 1 reply