Monday, April 1, 2019

Re: Announce: ECMAScript interface for Vim

Le 02/03/2019 à 16:42, Bob Pepin a écrit :
> Hi,
> This is to announce the release of an ECMAScript scripting interface for Vim.
>
> Why? Because it seemed like the right thing to do.
>
> The longer backstory is that I recently returned to using Vim as a programming editor, when I was left without a computer and it was by far the best editor on the iPad. The last time I used Vim for programming, "fe" still stood for "fileencoding". I am aware that I missed around 20 years of Vim history and that Vim script is the way it is for good (historical) reasons. I soon discovered that Vim it had added control structures to ex scripts, then lists and dictionaries, then lambdas. It seemed on track to reinvent ECMAScript. Since at the time of writing, ECMAScript is by some measures the most popular programming language in the world, with an excellent free, embeddable and portable implementation (Duktape), it seems by far the best option to use the real thing for future Vim scripting.
>
> Therefore, a Vim fork with a Duktape interface integrated can be found at:
>
> https://github.com/bobpepin/vim/tree/duktape
>

Thanks, I love and use Duktape myself! Very good choice.

> There is also extensive documentation and further examples under :help duktape, or in runtime/doc/if_duk.txt (https://github.com/bobpepin/vim/blob/duktape/runtime/doc/if_duk.txt).

Given that ECMAScript use camelCase I'd suggest to rename the low level
API. E.g. read_blob -> readBlob.

Regards,

--
David

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment