Michael Neumann wrote:
> 
> Mark Hahn wrote:

> > The reason I lost the argument was that they claimed it would cause
> > hard-to-find bugs if someone meant: "1".to_int + 1.  They claimed it was
> > ambiguous.  To me it is obvious that "1"+1 means a string and 1+"1" means an
> > integer (because of message passing).
> 
> What about:
> 
>   "1#{ 1 }" ???

or:
    ["1", 1].to_s

This is nice if your array is large.

--
Joel VanderWerf                          California PATH, UC Berkeley
mailto:vjoel / path.berkeley.edu                     Ph. (510) 231-9446
http://www.path.berkeley.edu                       FAX (510) 231-9512