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
- Strings vs Numbers (Re: Tying & Overloading) Nathan Wiger
- Re: Strings vs Numbers (Re: Tying & Overloadi... Branden
- Re: Strings vs Numbers (Re: Tying & Overloadi... John Siracusa
- Re: Strings vs Numbers (Re: Tying & Overloadi... Bart Lateur
- Re: Strings vs Numbers (Re: Tying & Overloadi... John Porter
- Re: Strings vs Numbers (Re: Tying & Overl... David L. Nicol
- Re: Strings vs Numbers (Re: Tying & Overloadi... Branden
- Re: Strings vs Numbers (Re: Tying & Overl... John Porter
- Re: Strings vs Numbers (Re: Tying & Overloadi... Nathan Wiger
- Re: Strings vs Numbers (Re: Tying & Overl... John Porter
- Re: Strings vs Numbers (Re: Tying & Overloadi... Larry Wall
- Re: Strings vs Numbers (Re: Tying & Overl... Jonathan Scott Duff