
9 Nov
2011
9 Nov
'11
5:54 p.m.
Hi, Am Donnerstag, den 10.11.2011, 01:35 +0200 schrieb Artyom Kazak:
Anyway, I have to say it once again: unsafeAt is ugly and Haskell is beautiful. Why high-performance code should be ugly?
It does not have to be ugly. Just write (!!) = unsafeAt in some common module of yours, and you have a nice fast array access. I don’t think a flag would be very helpful, because you might have some places where you want the safe access, and others where you know that it is safe to skip the check. Greetings, Joachim -- Joachim "nomeata" Breitner mail@joachim-breitner.de | nomeata@debian.org | GPG: 0x4743206C xmpp: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/