On Wed, Dec 21, 2016 at 12:05 PM, Dominique Pellé
<[email protected]> wrote:
...
> I also think that it's odd to accept spaces between the
> sign and the digits.  However, Vim already accepts spaces
> after the - sign and not after the + sign  (inconsistency addressed
> in patch in this thread).   If we instead give an error for
> str2float(" + 1.2"), then we break compatibility and potentially
> break existing scripts.

True, but whichever script is relying on "+ 1.2" being a legitimate
float is already
buggy and fragile, because it breaks for "- 1.2".  I don't see there
would be much
damage caused by requiring attached signs.

Pavol

-- 
-- 
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.

Raspunde prin e-mail lui