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
  m...@joachim-breitner.de  |  nome...@debian.org  |  GPG: 0x4743206C
  xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to