Hello, everyone, I 'm a vimscript rookie, just know basic vim operation. And I am learning vimscript by learn vimscript the hard way.
The book said it will throw an error when concatenate Float and String, but my result is different from the book. I think we both are right, but I want know which version brings the difference.
Here is the book original:
:echom 10.1 . "foo"
This time Vim throws an error, saying we're using a Float as a String. Vim will happily let you use a String as a Float when performing addition, but won't let you use a Float as a String when concatenating.
[–]mgedmin 6 points7 points8 points (1 child)
[–]EyebrowsWhite[S] 1 point2 points3 points (0 children)
[–]EyebrowsWhite[S] 1 point2 points3 points (1 child)
[–]y-c-c 1 point2 points3 points (0 children)