Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see (and it is certainly highly subjective) one large similarity between Haskell and C++: Haskell and C++ code looks similar to me aesthetically, as in indentation patterns being similar and so on, it's certainly weird :)

Also it is interesting to note, that both Haskell and C++ world is full of discussions about how to do something remarkably complex to get nice syntax for something. You don't see that in lisp world, where such problems are simply solved by macros and nobody goes into great lengths to (ab)use some random language feature to get nice syntax for his library.



This happens in a ton of languages, e.g. Ruby (method call syntax and blocks), Scala (idem), C# (LINQ syntax), etc.


Nice syntax? C++ gurus have ascended above that a long time ago.

Nice compiler error messages are the real thing now.

Seriously: I feel the need to express something in a concise and somewhat beautiful way to be a large part of C++ culture and partly a reason for so many people shying away from less expressive languages. Some of the Boost libraries are even centered around the whole idea and required a lot of effort (see Boost::assign).


Template Haskell (or a more general pre-processor) can eliminate most of these discussions, too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: