3 ms·
Are there any Lisps that are particularly bad for scripting? Elisp comes to mind since it's not great unless you're already inside Emacs, but if you are it's pr
by Zambyte 3y ago
Are there any Lisps that are particularly bad for scripting? Elisp comes to mind since it's not great unless you're already inside Emacs, but if you are it's pretty good.
- HKH2 3y agoAre there any good Lisp shells?
- soraminazuki 3y agoElisp can be used from the CLI with batch mode. It's convenient even, for manipulating text. Especially source code.
- amno 3y agoElisp is actually exceptional for scripting :). You can also compile Emacs without graphics for even faster startup, check emacs-nox, and you can run it as a script: https://www.emacswiki.org/emacs/EmacsScripts https://www.emacswiki.org/emacs/EmacsScripts. What you get extra is a really good debugger (edebug), and text processing library extensions so you don't need to start extra processes (grep, awk, tr & co) just to extract some text from one output and send it to another. They also have really, really good integration with system, almost on par with Bash. So despite Lisp being more verbose than a DSL like Bash script, you win tons by just having a debugger. Completion and Emacs auto-typing features (snippets, abbrevs, autoinsert etc) compensate for the verbosty.