No it doesn't. 

'.' in TT isn't an operator at all, [% SET us = me . you %] buys you a parser error.

And in perl5 '.' is the string concatenator which forces "stringification" on numbers 
and objects. All the math ops in perl force "numberification". In TT, Andy seems to 
have chosen numberification where perl was "squidgy" and has provided explicit 
operators for 'concatenate' and 'add'.

You can't overload '+' to concatenate strings since TT can't tell a fundamental string 
apart from a fundamental number. That is deep perl magic that the current parser and 
stash mechanism just can't match.

In any case, '_' does what you want and makes sure things are strings, and is in line 
with where Larry Wall is going with perl 6. Someday, it will look "right". =)

> Right, so does '.' in TT and in perl.
> 
> > + forces its arguments to numeric. It already has a job.
> > 
> > > I was thinking about overloading the '+' operator as it would 
> > > seem to be much easier than '.'.


Reply via email to