You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of WeakMap, the JS runtime now has restrictions on where primitive types are disallowed. Is it possible (or planned) to have language support for discriminating from primitive types and the ability to constraint generic types based on that discrimination?
From a previous SO post I made, the answer seems to be "no". But taken in light of WeakMap requirements, perhaps it can be revisited?
With the introduction of WeakMap, the JS runtime now has restrictions on where primitive types are disallowed. Is it possible (or planned) to have language support for discriminating from primitive types and the ability to constraint generic types based on that discrimination?
From a previous SO post I made, the answer seems to be "no". But taken in light of WeakMap requirements, perhaps it can be revisited?
The text was updated successfully, but these errors were encountered: