4 ms·
I never understood why these weren't primop = let x = x in x (+#) = primop or something else at least somewhat meaningful.
by tome 12y ago
I never understood why these weren't
primop = let x = x in x
(+#) = primop
or something else at least somewhat meaningful.
- pash 12y agoI don't know the answer to that, but I suspect it might be because there is some reason for the code in GHC.Prim to be monomorphic. There is a Stack Overflow discussion about this that gives a bit more background, by the way. (The answer needlessly digressing into the lambda calculus is mine.) 0. http://stackoverflow.com/questions/15893524/what-is-the-meaning-of-let-x-x-in-x-and-data-float-in-ghc-prim-in-haskell http://stackoverflow.com/questions/15893524/what-is-the-mean...