
10 Jan
2008
10 Jan
'08
3:10 p.m.
On Jan 10, 2008 8:06 PM, Ketil Malde
"David Roundy"
writes: I just want to point out that unsafePerformIO is at the core of the (safe) bytestring library. As SPJ et al pointed out, this is crucial functionality, and is only unsafe if unsafely used.
In Modula-3 modules using hacks must be explicitly marked as UNSAFE. See http://www.cs.purdue.edu/homes/hosking/m3/reference/unsafe.html Maybe this is also an option for Haskell?
I don't think this is a good idea.
I think the point is (should be) to mark functions unsafe when they may be unsafe to /use/,
I think using the IO monad for this works well... -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862