Better HN
topnewbestaskshowjobs
Log inSign up

runaro

2 karma · joined Jun 1, 2009 (17y ago) · 2 submissions

Submissions

comment 13y ago · link · parent

If you look at the definition of "good" in Noah Webster's American Dictionary of the English Language, it will say "fit for a particular purpose" to say that nothing is any better than anything else is to ignore purposes.

comment 16y ago · link · parent

No higher-rank types in Scala, I'm afraid.

As for the monoid instance:

def pairMonoid[A,B](a:Monoid[A],b:Monoid[B]) = new Monoid[(A, B)] { def empty = (a.empty, b.empty) ... }