2016-03-01 13:39 GMT+03:00 mattn <[email protected]>: > On Tuesday, March 1, 2016 at 5:10:47 PM UTC+9, ZyX wrote: >> 2016-03-01 4:42 GMT+03:00 mattn <[email protected]>: >> > Below is a patch to fix tv_equal. >> > >> > https://gist.github.com/mattn/fb486829628b39e371a7 >> >> Automatic type conversions never worked when using lists, check [1] == >> ["1"]. I do not think this needs to be fixed, there is no way to >> compare lists taking types into account and thus it is better to make >> `==` respect types when comparing containers then do type conversions. > > "is" should work for it, I guess.
`is` works for *scalars* this way. For containers it checks whether containers are one and the *same objects*, not *equal objects*. > > -- > -- > 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. -- -- 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.
