Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37530 invoked from network); 4 Apr 2013 03:09:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2013 03:09:56 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.210.45 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.210.45 mail-da0-f45.google.com Received: from [209.85.210.45] ([209.85.210.45:33274] helo=mail-da0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/0E-07534-20FEC515 for ; Wed, 03 Apr 2013 22:09:55 -0500 Received: by mail-da0-f45.google.com with SMTP id v40so932389dad.18 for ; Wed, 03 Apr 2013 20:09:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=SB+lhNGOM2cTsKoT6Yd+GEddAj5pylQOHS0kPkt4NYM=; b=VnSsOitmwfv2KKUjQDaBUZwxFJzvQs/hDTS61I7znWPHvtPyE2xBxGZ10npLxsVueD ao2HBtrICi8mQFMn0RBMtzZ+yIZua84SrWb63sBDziWGAIJP9jmOh6dc95uPRl9bUBVp /7pugdf9nQ7hwxCJmu7Ey26o5aoOybIvi+4IH/ltkq6sZ4XXQ5mtodezp3ILYPVZadZz 3zIieY4fq0ZFTxGACWfNmyKrIdSEr3+1LkCF9lX9KKqfGpJ57ehCv5c/DdBpF/DVIFPU VfUaVYZlpWdVJY6q9/3emLGtXJf2sKyEyQ+iqTtdnih6icdHAQDLcM8nzdrThrJn4+YT me2w== MIME-Version: 1.0 X-Received: by 10.66.25.13 with SMTP id y13mr6815887paf.208.1365044992304; Wed, 03 Apr 2013 20:09:52 -0700 (PDT) Sender: php@golemon.com Received: by 10.70.28.65 with HTTP; Wed, 3 Apr 2013 20:09:52 -0700 (PDT) X-Originating-IP: [98.210.180.187] In-Reply-To: <66.08.07534.A929C515@pb1.pair.com> References: <515C8670.7030400@php.net> <66.08.07534.A929C515@pb1.pair.com> Date: Wed, 3 Apr 2013 20:09:52 -0700 X-Google-Sender-Auth: NNKbqS-QpjJSZ0rNBPV4_WcvN48 Message-ID: To: Joe Watkins Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmxMgWYkQ9YfxQMmge/9UWPoVOHK/H1ZIuWfjtPpkTuOc5qSREEK2eCFUtFbT1RhYnbnBqx Subject: Re: [PHP-DEV] [RFC] Simplified Array API for extensions From: pollita@php.net (Sara Golemon) >> A logical extension of this idea would be to drop _array_ and cover >> objects too, one uniform everything API is very appealing, and way >> easier to document properly. >> > > https://gist.github.com/krakjoe/5304945 > > I'd be happy to complete/test it if we think it's a worthy direction to go > in ... a unified api does look delicious, it's a bit more complex than > arrays but then in extensions you want/need to deal with objects as much as, > if note more than, you do arrays ... > While I'm in favor of an API which covers both Arrays and Object properties, I don't want to go too far in the direction of generically named APIs. php_exists() is, I think, too far. I'm not sure what's the right middle-ground of being both descriptive and concise, but I'm sure we can sort that out.