On 4/23/01 3:59 PM, Nathan Wiger wrote:
>> Then how do you concatenate a number?
> 
> Here's something I was thinking about at lunch:
> 
>  $concated_number = "$number" + "$other_number";
>  $numerical_add   = $number + $other_number;
> 
> Why not require "" in the case when you want to forcible concat a number
> as a string? Most people write:
> 
>  $string = "$number$other_number";
> 
> Already anyways. You would only have to disambiguate if one of the args
> was not a string. So here would be some equivalents:
> [snip]

Using + for concat: no!

My vote is to use . and require space before and after.
$this.$is.$ugly.$anyway ;)

-John

Reply via email to