4 ms·
Vimscript is a collection of ex commands (i.e., a DSL for editors) with a few functions bolted on that provide for a simple form of OOP. I don't think your argu
by stewbrew 7y ago
Vimscript is a collection of ex commands (i.e., a DSL for editors) with a few functions bolted on that provide for a simple form of OOP. I don't think your argument is 100% fair.
- Avi-D-coder 7y agoBeing a collection of commands that can be entered in a repl does not make it a text centric DSL Text manipulation in vimscript is more verbose than Rust including all ownership syntax. What elements of vimscripts design make it good at parsing and manipulating text? I can imagine a beautiful text centric EDSL in Haskell or a lisp that integrates tree sitter to provide syntactic hooks. I don't blame vimscript for not having this modern integration, but I do blame it for being a poorly designed language and I condemn any attempts to prolong its life. Over in NeoVim land treesitter is being integrated. Once it lands someone should write a EDSL in the Lua lisp.
- stewbrew 7y ago`:help :syntax`?
- Avi-D-coder 7y agoI've written vim syntax files before. Syntax highlighting and an error tolerant syntax aware Text manipulation EDSL are very different.
- hibbelig 7y agoTo me those ex commands feel more like a standard library than a DSL. But I know very little about vimscript and I’m happy to be corrected.