News for hackers. Stuff that matters.
Re:Swift vs. Go by tome on Saturday April 02, 2016 @04:45AM (#11410782)
I believe the situation is that Dynamic only requires Typeable, and Typeable only requires unsafeCoerce plus the trust that bad instances are never created.
Re:Swift vs. Go by catnaroek on Saturday April 02, 2016 @05:39AM (#11410896)
> unsafeCoerce

GHC-specific implementation detail.

> the trust that bad instances are never created

The only way I can trust it is if the compiler enforces it, at which point it isn't “just a library feature”.