|
|
|
|
|
by nostrademons
5827 days ago
|
|
"Want to be sure certain parts of your program don't access /dev/nuclear_missiles?" Actually, if you want to make sure that parts of your program don't access /dev/nuclear_missiles, I think that E is your language. In Haskell, it's as easy as `unsafePerformIO $ hGetContents "/dev/nuclear_missiles"`, which at least warns you that it's unsafe but doesn't really give any assurances otherwise. And if you're in the IO monad anyway, you don't even need the unsafePerformIO. |
|