On 2 March 2016, Tony Mechelynck <[email protected]> wrote:
> A Float cannot be used as a String, that's error E806. You can see it
> by trying
>     :echo "a" . (0 + 1.1)
> which forces 1.1 to be a Float.
> Since 1.1, when concatenated to "a", cannot be a Float, then it must
> be 1 . 1 (1 concatenated with 1) which is indeed 11.
> 
> TL;DR: T'ain't a bug, it's a feature.

    Not having an implicit conversion from float to string is a
limitation, not a feature.  According to a previous thread, the reason
for this limitation is that "a".1.1 is ambiguous, not the other way
around.  There are several possible ways to solve this ambiguity, but
none of them can be completely consistent.  Consequently, every once in
a while people spend time arguing which approach is less annoying, just
to eventually fallback to statu quo ante.

    In the mean time, dealing with floats is a pain in the rear anyway,
since Vim can still be compiled without +float.  I believe not being
able to deal with floats has stopped being cool together with 486SX. :)

    /lcd

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