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.
Re:Ask HN: When was the last really transformational idea in...
by davo11 on Saturday February 07, 2009 @06:47AM
(#471065)
both these are outgrowths of C++ features - templates and rtti, which I saw first in the early 80's but were probably around earlier.
Re:Ask HN: When was the last really transformational idea in...
by BigZaphod on Saturday February 07, 2009 @08:39AM
(#471112)
I'm not sure when type-safe generics came on the scene (perhaps that was C++), but introspection/reflection has been around since Smalltalk at least.
Re:Ask HN: When was the last really transformational idea in...
by wheels on Saturday February 07, 2009 @08:51AM
(#471116)
Wikipedia says Ada:
http://en.wikipedia.org/wiki/Generic_programming#Generics_in...
- Type-safe generic programming
- Introspection