JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.54k stars 5.47k forks source link

Typed WeakRef #5762

Open filmackay opened 10 years ago

filmackay commented 10 years ago

Is there any reason not to have a typed version of WeakRef ie. WeakRef{T}?

NHDaly commented 1 month ago

This makes sense to me. I'm curious to hear about thoughts here. Would it make sense to provide this? (I guess it might need to be a separate type now to avoid breaking behavior, since WeakRef is already concrete in the existing API? Maybe WeakRefTyped?)

NHDaly commented 1 month ago

cc @StefanKarpinski / @vtjnash / @d-netto