# [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200:
> Jochem Maas wrote:
> >
> >that's going to make it completely impossible to use then isn't it.
> >no way you could possibly wrap the class/objects functionality in a wrapper
> >function.
> >
> At the moment it's sufficient, since I've now time to figure out how the 
> Json package can be installed. Then I can switch to use the usual 
> json_encode function. Thanks.

What I don't understand is why you're going from a general interface

  $someObject->decode($string); # if it quacks like a JSON decoder...

to a narrow one:

  json_decode($string); # you either have the function or you're screwed.

Tight coupling -> inflexible code.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to