P
pachl
Do adjacent strings or strings separated by backslash and a newline
create multiple String objects?
For example:
s1 = 'asdf' 'qwer'
s2 = 'asdf'\
'qwer'
I don't know how to figure this out, but I ran benchmarks and compared
against '<<' and '+' and it looks like each example above only creates
a single String object. What's really happening?
-pachl
create multiple String objects?
For example:
s1 = 'asdf' 'qwer'
s2 = 'asdf'\
'qwer'
I don't know how to figure this out, but I ran benchmarks and compared
against '<<' and '+' and it looks like each example above only creates
a single String object. What's really happening?
-pachl