2016-05-15 15:55 GMT+03:00 Björn Linse <[email protected]>:
>
>> Really.
>
> These are good points. I was going to suggest job_stop("3") is ok but not
> job_stop("SomeString") but then again 3+"somestring"==3 so it is probably a
> lost cause.
>
>> Worst of the valid choices if you want.
>
> You may be right. I just found it unhelpful to say something (that already is
> used) is "the worst choise" without offering any better suggestion.
Suggestion in this case is really obvious: describe what is the error
(and in some cases where it is), not just state there is one. In your
case that would be “Exxx: Expected number as a timer ID”. In Neovim I
do this in the “compatible with Vim” fashion: xxx is a number from
e_invarg or whatever was the error message in Vim. In Vim, I guess,
you will need to allocate a new error code which is inconvenient in
many fashions (I would write “timers/invalid-tid: Expected number as a
timer ID”, not Exxx: {domain}/{msgid}), guess this is why Bram avoids
creating useful error messages in many cases.
>
> --
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
--
--
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].
For more options, visit https://groups.google.com/d/optout.