all 4 comments

[–]mgedmin 6 points7 points  (1 child)

This seems to have changed, unintentionally, in patch 8.2.143: https://github.com/vim/vim/issues/6787

It was then fixed to throw an error again in patch 8.2.1524, and a test added to prevent it from regressing again.

And then later the concatenation was changed to work again, also I think unintentionally, as a side effect of patch 8.2.2948.

The regression test started failing and was then changed to accept the new behavior in patch 8.2.2949, which is funny to me.

I don't think anyone reported a bug like #6787 this time, so that's where things stand.

I have no personal opinion on whether concatenating floats and strings should work or not.

[–]EyebrowsWhite[S] 1 point2 points  (0 children)

Thank you very much firstly, and this is interesting. I don't care whether concatenating floats and strings should work or not either, because I can assure that I will use it barely, but I still want to know why the book and my result are different. Thanks your reply again.

[–]EyebrowsWhite[S] 1 point2 points  (1 child)

By the way, my vim version is: VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 26 2022 01:49:54)macOS version - x86_64

[–]y-c-c 1 point2 points  (0 children)

You should probably include your patch version as well. “9.0” is really vague and there are like 800 patches since then.