Live data from Hacker News

Why Lisp is Awesome

atomized.org

61–62 of 62 posts

Re: Why Lisp is Awesome

#61

I wasn't aware you could use const char pointers in switch statements. switch (var) { case "foo": printf("foo block."); break; case "bar": printf("bar block."); break; default: printf("Default case") }

You can't: $ cat foo.c #include main() { const char *foo = "bar"; switch (foo) { case "foo": printf("foo\n"); } } $ gcc -pedantic -std=c99 foo.c -o foo foo.c: In function ‘main’: foo.c:4: error: switch quantity not an integer foo.c:5: error: case label does not reduce to an integer constant

Sorry to make you put in so much work.

I'm aware that you can't do this.

I guess my sarcasm didn't translate:)

Re: Why Lisp is Awesome

#62

For the longest time I've heard that "Lisp is awesome", but no reasons why and when I've asked why, the answer is usually, "you have to try it to see it" This article is a pretty nice down to earth point by point explanation why list is so cool. My question is: is that it ? lambdas, data is code, dynamic programing.. I mean those features are cool, but could someone post some more clear examples of why lisp is awesom…

http://www.defmacro.org/ramblings/lisp-ducati.html http://www.defmacro.org/ramblings/lisp.html """What would you rather do? Learn 16 different languages and frameworks in order to do "simple" log-file and configuration-file processing? Or just buckle down, learn Lisp, and have all of these problems go away forever?""" http://steve.yegge.googlepages.com/the-emacs-problem

The above article (http://www.defmacro.org/ramblings/lisp.html) is excellent ! Thank you very much for the link.
Post reply on HN