ruby - Array with several strings is concatenated -


array more 1 string separated space produces array 1 concatenated string. imho, should raise syntax error. behavior correct?

["1" "2" "3"] #=> ["123"] 

this has nothing array. feature of string literal. if write string literals in quotes next each other, represents string given concatenation.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -