News for hackers. Stuff that matters.
Re:Ask HN: When was the last really transformational idea in... by GeoJawDguJin on Saturday February 07, 2009 @03:04PM (#471421)
Typesafe generics have been in ML from the get-go (1970s) from what I remember. People like to talk about how type inference is useful, but it's really the generic polymorphism that makes it shine.

I was hacking together an Arc interpreter in Haskell the other day, and after refactoring some of the hairier monadic code, I was horrified to see that the type signature for a particular function was twice as long as the function body. And that's with the compiler figuring it out for me... I don't know what I'd have done if it was C++ instead.

Re:Ask HN: When was the last really transformational idea in... by nostrademons on Saturday February 07, 2009 @06:31PM (#471580)
It's really amusing (in an oh-my-God-I'm-fucked way) to try and debug type errors in Happy-generated parsers. There have been times when the type of the function (not even the whole error message) has been a page long.

C++ STL code can be similarly (un)fun.

Re:Ask HN: When was the last really transformational idea in... by wheels on Saturday February 07, 2009 @07:17PM (#471620)
Intel's C++ compiler produces much more readable error message, I find. Though, almost perversely, I've gotten used enough to GCC's cryptic template error output that I'm more comfortable with it.