Paul Jolly wrote:

> > Hmm, it's possible if you ignore security fixes, these sometimes skip a
> > longer range of patches.
> >
> > We could add v:longversion or v:versionlong, with:
> >
> >         major version (one digit)
> >         minor version (two digits)
> >         patchlevel (four digits)
> >
> > Current version would be 8011523.  Then you can easily compare with the
> > version you need, no string parsing or anything.
> 
> I'd prefer the semver string to be honest, v8.1.1512. Neovim's
> releases are also semver tagged.

I have never heard of the term semver.  I thought it was a typo.

> It's also the string the user will know:
> 
> https://github.com/vim/vim/releases
> https://github.com/neovim/neovim/tags
> 
> It's also the string I will output to users saying "hey, you need to
> be on version X for this feature"

Turning the number into a message is trivial, while using the string in
an "if" statement is not.

> Because Go modules is entirely based around semver versions, dealing
> with them is trivial:
> 
> https://godoc.org/github.com/rogpeppe/go-internal/module
> 
> (there is also a more standard package proposed). So, on that front
> I'm sorted.

Hardly anybody writes go for a Vim plugin, thus this is irrelevant.
I'm much more interested in something that works in a Vim script.

-- 
"Hit any key to continue" is a lie.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201906131946.x5DJkdHX029487%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui