News for hackers. Stuff that matters.

dyokomizo

Re:True Scala complexity on Monday January 09, 2012 @06:13PM (#3444785)
In GHC the features are much more well-defined and bite-sized. If you ignore them you still have a very complete, usable and impressive language.

[edit s/less well/more well/]

Re:Understanding higher-order code (Haskell) on Thursday December 22, 2011 @07:01PM (#3383918)
The type of id is universally quantified, that's why the free theorem holds. If it was id :: Typeable a => a -> a then it could inspect the type representation and do something different if it's an Int or whatever, but in this case the theorem is different from ∀a. a → a. The Wadler paper goes in greater length about why the universal quantification holds.

Also the computer can't, at runtime, introspect what you typed due to erasure (i.e. the types are erased at runtime) which is part of proper parametricity.