Python's take on this is that if you want a bool, you use the bool 
constructor `bool( <expr> )`; we could add a vimscript function (like 
`string`) which takes an expr and returns either `v:true` or `v:false`, as 
in `return bool( 'string' )` or `return bool( 99 )`. The semantics of the 
type specified would have to determine how 'truthy' a value is. I think 
that's already defined for vimscript as mentioned.

On Wednesday, September 9, 2020 at 1:56:33 PM UTC+1 Bram Moolenaar wrote:

> Closed #6903 <https://github.com/vim/vim/issues/6903> via 29a86ff 
> <https://github.com/vim/vim/commit/29a86ffee794bc1a0efde215c203cf9529047252>
> .
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub 
> <https://github.com/vim/vim/issues/6903#event-3745693550>, or unsubscribe 
> <https://github.com/notifications/unsubscribe-auth/ACY5DGDQLIXRDCANGP5HPDTSE53PTANCNFSM4Q7DQ27Q>
> .
>

-- 
-- 
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/c693b76c-c7e2-4822-a9a4-6c28b1cb0c80n%40googlegroups.com.

Raspunde prin e-mail lui