vim8 > vim9 : Be happy with vim8!
| script karma
Downloaded by 14
Comments, bugs, improvements
script versions (upload new version)
|Yiu Wing Yip|
|With vim9 is on the horizon and rational has been augmented for making such
linguistic changes. However, vim8 has the full potential of becoming pure
object-oriented language and provides the ability of crafting your own domain
specific programming language as well. Combining with all the latest offers
from vim8 is a blessing to apply design patterns and other OO techniques in
your program, which have much more than vim9 and other scripting languages
have to offer.
This package serves as a practical framework for doing object-oriented in vim8
without the hassle of learning vim9 syntax, which puts a lot of burden on
developers. Just use the existing vim8 alone, we can easily add more cool
features that are existing other programming languages.
The main script ObjectBuilder.vim is less than 150 lines! Nevertheless, it
supports class declaration, method override, etc, most of the familiar
object-oriented features, even including multiple inheritance.
This is not a revolution against vim like Neovim, but a religious practice of
embracing vim8. There are already suggestions of porting vim8 scripts to
vim9, I'm strongly against that, because there's no real benefit and
justification to it. Rather than wasting time learning an ego-driven and
meritless language, just live with vim8 and be happy!
|Untar the tar ball and source Bit.vim to run the example. If your want to use the framework, just source ObjectBuilder.vim in your script.|
Click on the package to download.
ip used for rating: 188.8.131.52