Re: Autoboxing in php 5.1
| From: | Andrei Zmievski | Date: | Thu, 10 Feb 2005 18:56:01 +0000 |
| Subject: | Re: Autoboxing in php 5.1 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14803@lists.php.net to get a copy of this message | ||
On Thu, 10 Feb 2005, Ante Drnasin wrote:
> >Why?
> >
> >- Andrei
>
> Why not?
>
> Because it would be a great asset to the new OOP model in PHP 5....
You did't answer my question. Why?
> Because the new OOP model is great and I don't think it shouldn't stop
> there....
Why?
> Because it would be great if the choice is left to the end user...
Why?
>
> We already have OOP freaks (including this one) and I just love the idea
> to have something like
>
> function Add($a, $b) {
> return new Float($a+$b);
> }
Why?
>
> print(Add(new Integer(5), new Float(5.7)));
Why?
- Andrei