3 ms·
Actually you can interpret unsafePerformIO as: "Dear compiler, I know you can't prove that it's safe to call this function here in a lazy setting. Please trust
by eru 16y ago
Actually you can interpret unsafePerformIO as: "Dear compiler, I know you can't prove that it's safe to call this function here in a lazy setting. Please trust me that it is. Sincerely, the programmer."
- dons 16y agoPrecisely. The burden is on the programmer to provide the evidence that the conditions for calling `unsafePerformIO` are satisfied. (That is, that any side effects are hidden). Most languages have `unsafePerformIO` on every single computation :-)
- baguasquirrel 16y agoIt's like there's a spacesuit full of nuclear waste in every single computation!
- dons 16y agoThe horror!!