Re: Vim9 import [was Vim9 script feature-complete]

2022-01-05 Thread Lifepillar
On 2022-01-04, Marvin Renich wrote: > * Bram Moolenaar [220104 12:26]: >> While using: >> >> import "thatscript.vim" >> >> Or: >> >> import "thatscript.vim" as that >> >> Is nice and short, no need for "from". The help for ":import" becomes >> much shorter. The implementation will

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Thread Marvin Renich
* Bram Moolenaar [220104 12:26]: > Marvin Renich wrote: > > * Bram Moolenaar [220103 12:33]: [snip] > > I agree that using the (cleansed) file name is suboptimal, but it was > > the simplest choice. There are a couple other possibilities. One is to > > require the "as" clause. [snip] > > Every

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Thread Bram Moolenaar
Marvin Renich wrote: > * Bram Moolenaar [220103 12:33]: > > > On 2022-01-03, Marvin Renich wrote: > > > > Don't bother with the > > > > > > > import MyClass from "myclass.vim" > > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > > > syntax, and only provide > > > > > > >

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-04 Thread Marvin Renich
* Bram Moolenaar [220103 12:33]: > > On 2022-01-03, Marvin Renich wrote: > > > Don't bother with the > > > > > import MyClass from "myclass.vim" > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > syntax, and only provide > > > > > > import "myclass.vim" > > > import

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread BPJ
Den mån 3 jan. 2022 18:34Bram Moolenaar skrev: > > > On 2022-01-03, Marvin Renich wrote: > > > Don't bother with the > > > > > import MyClass from "myclass.vim" > > > import {someValue, MyClass} from "thatscript.vim" > > > > > > syntax, and only provide > > > > > > import "myclass.vim" >

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread Bram Moolenaar
> On 2022-01-03, Marvin Renich wrote: > > Don't bother with the > > > import MyClass from "myclass.vim" > > import {someValue, MyClass} from "thatscript.vim" > > > > syntax, and only provide > > > > import "myclass.vim" > > import "myclass.vim" as Other > > > > and require use of the

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread Salman Halim
On Mon, Jan 3, 2022, 11:23 Lifepillar wrote: > On 2022-01-03, Marvin Renich wrote: > > Don't bother with the > > > import MyClass from "myclass.vim" > > import {someValue, MyClass} from "thatscript.vim" > > > > syntax, and only provide > > > > import "myclass.vim" > > import

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread Lifepillar
On 2022-01-03, Marvin Renich wrote: > Don't bother with the > import MyClass from "myclass.vim" > import {someValue, MyClass} from "thatscript.vim" > > syntax, and only provide > > import "myclass.vim" > import "myclass.vim" as Other > > and require use of the namespace prefix: > >

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread arocker
> -- > $ echo pizza > /dev/oven > Totally OT, but Bram's signature file is amazing. Yet another reason to thank him. I shall use that as an example when explaining output mechanisms from now on. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread Bram Moolenaar
Marvin Renich wrote: > * Bram Moolenaar [220103 07:07]: > > > > > On 2021-12-30, Bram Moolenaar wrote: > > > > If you have remarks on something in Vim9 script that you think should be > > > > different, speak up now! Soon we'll only make backwards compatible > > > > changes to avoid

Re: Vim9 import [was Vim9 script feature-complete]

2022-01-03 Thread Marvin Renich
* Bram Moolenaar [220103 07:07]: > > > On 2021-12-30, Bram Moolenaar wrote: > > > If you have remarks on something in Vim9 script that you think should be > > > different, speak up now! Soon we'll only make backwards compatible > > > changes to avoid breaking existing plugins. > > > > There