On 8 February 2016, Bram Moolenaar <[email protected]> wrote:
> There is a balance between being backwards compatible and doing what is
> expected.  Spaces can be relevant, but that doesn't help for backwards
> compatibility.
> 
> One thing to keep in mind, why would you ever write:
>       "a" . 1.1
> If you can write:
>       "a11"
> Or:
>       "a1.1"
> 
> This does not seem not so important.  What is relevant:
>       let a = "header: "
>       echo a . 1.1

    Well, philosophically, I'd say literal numbers should never be
promoted to strings, that is:

        let a = "header: "
        let b = 1
        echo a . b --> header: 1
        echo a . 1 --> error

    a . 1 looks like an accidental feature, and using it on purpose
certainly feels like bad style.  However, making it an error would be
hard to document, let alone justify, and that would be much worse than
the current behaviour.

> I assume most of us are surprised that the result is:
>       header: 11

    Yes, this is definitely unexpected.  Maybe whoever depends on this
behaviour deserves to see it breaking. :)

> Perhaps we should just change that and see who complains?

    /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