5 ms·
Lisp is the best language for generating HTML, XML, writing compilers, or parsers. PS: Lisp is more a family of languages that share features than it is a spec
by Retric 18y ago
Lisp is the best language for generating HTML, XML, writing compilers, or parsers.
PS: Lisp is more a family of languages that share features than it is a specific language.
- chollida1 18y ago> , writing compilers, or parsers. I think the OCaml guys and the Haskell guys(Parsec) might take exception to this. See: http://flint.cs.yale.edu/cs421/case-for-ml.html http://flint.cs.yale.edu/cs421/case-for-ml.html http://www.ffconsultancy.com/ocaml/benefits/parsing.html http://www.ffconsultancy.com/ocaml/benefits/parsing.html It's not that CL is bad for writing compilers or parsers (I've written a few parsers using it), its just that blanket statements like "Lisp is the best language for ..." isn't always going to be true.
- Retric 18y agoSome things come down to personal preference, but I don't think OCaml's static type system is more useful than Lisp's approach for parsers / compilers. Granted if your building avionics then type safety is important, but in the more normal case it's just not that useful. Haskell is a pure functional language which is great for maintaining systems but I don't think it's a real benefit when writing them. If you want to write Lisp as a functional Language you can but when it's useful to break that mold you can. PS: There is probably a better language out there for this stuff, but I don't know of it.
- malkia 18y agoAnything coming from Jon Harrop is questionable (ffconsultancy.com)
- lgriffith 18y agoHince my reference to good enough and rubber wall of Lisp. Lisp is not one thing. Its a collection of collections of things capable of being indefinitely morphed by itself. ANSI C is bad enough without those kinds of problems. Incidentally I have written several efficient and effective parsers and compilers in both Pascal and ANSI C. I found them quite good enough. I have a hard time seeing Lisp as little more than a big brother to Forth. I see both of them as wonderful solutions to the wrong problems. At least to probelms I don't have nor want to solve.