sponsor Vim development Vim logo Vim Book Ad

vim8 > vim9 : Be happy with vim8!

 script karma  Rating 0/0, Downloaded by 14  Comments, bugs, improvements  Vim wiki

created by
Yiu Wing Yip
 
script type
utility
 
description
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!
 
install details
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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
JustVim8.tar.gz 1.0 2022-01-09 7.0 Yiu Wing Yip Initial upload
ip used for rating: 3.87.33.97

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN