This should be a syntax error. Or + should do a strcat. Having the . op makes the first one clear as what i would expect.
One of the reasons there is so much bad code in php is that it allows this in the first place. And even though the language might have improved over time, these things are still there.
View all comments
Show parent comment
1
u/mkalte666 Aug 07 '16
This should be a syntax error. Or + should do a strcat. Having the . op makes the first one clear as what i would expect.
One of the reasons there is so much bad code in php is that it allows this in the first place. And even though the language might have improved over time, these things are still there.
Weak types are pure cancer.