develooper Front page | perl.perl6.language | Postings from September 2005

Re: Stringification, numification, and booleanification of pairs

Thread Previous | Thread Next
From:
Damian Conway
Date:
September 23, 2005 02:50
Subject:
Re: Stringification, numification, and booleanification of pairs
Juerd wrote:

> I think separating stringification and interpolation leads to
> unpredictability, and is a very bad thing.

I disagree. I think it's likely that people will think of ~$val and +$val the 
same way (i.e. as "coerce the value"), but that they will think of "$val" 
quite differently (i.e. as "interpolate a useful string representation of the 
entire value").

More importantly, as we have already seen with regexes, inconsistent 
numerification and stringification is an even more serious problem.

Damian

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About