Y
Hacker News
new
|
ask
|
show
|
jobs
by
sgarland
430 days ago
Yes, annotations allows you to use the declared types as they are, no strings.
1 comments
FreakLegion
430 days ago
It turns them into thunks (formerly strings) automatically, an important detail if you're inspecting annotations at run time because the performance hit of resolving the actual type can be significant.
link
sgarland
430 days ago
TIL, thanks! It looks like 3.14 is also changing it so that all evaluations are lazy.
link