Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61422 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34500 invoked from network); 18 Jul 2012 17:50:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2012 17:50:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:44842] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/54-39169-757F6005 for ; Wed, 18 Jul 2012 13:50:15 -0400 Received: by pbbrp12 with SMTP id rp12so3144883pbb.29 for ; Wed, 18 Jul 2012 10:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3/nY1cbsSeQecL9VYj7YaFJXmKdVktkBHzZRTWe5es4=; b=ap5kpZ6W5Cx4qdxwxVjoYA2HO0AA9Mj1NEbq/MOJG8v68XTpbUpid+w8NrbrlY4Z+b Lbv4pD0VXSehHe9S/jiyboVx3AG522NxeVdSHkjDZLgejDBS9VJqNpGx5o8OVjyJwhSm L7lVTAaLiZVBhvG/cIsQK8MNfHUcAcsxJvS/bkyireDZvsg7X0Jyoqs2Cd5l2tvj/UWA 9UDFMy0eh0A0NABHLoNe7xRmQklM+mox3azZqRzlDf1//jhNSpZfECm+L4gx+KGury5A cJr8lrrNUZvojdgMCW9i8sR/X6siQSsgE7rZ6eeE+2PjpEQUXPQwAGRbdQ6RzLcdkZ7M VZIw== MIME-Version: 1.0 Received: by 10.68.232.170 with SMTP id tp10mr10434053pbc.59.1342633812511; Wed, 18 Jul 2012 10:50:12 -0700 (PDT) Received: by 10.68.54.169 with HTTP; Wed, 18 Jul 2012 10:50:12 -0700 (PDT) Received: by 10.68.54.169 with HTTP; Wed, 18 Jul 2012 10:50:12 -0700 (PDT) In-Reply-To: <5006EA43.608@sugarcrm.com> References: <50059AF8.5050805@sugarcrm.com> <5005CB58.2020601@sugarcrm.com> <50066724.6050901@sugarcrm.com> <50067040.3090307@sugarcrm.com> <5006E5BB.50906@sugarcrm.com> <5006EA43.608@sugarcrm.com> Date: Wed, 18 Jul 2012 19:50:12 +0200 Message-ID: To: Stas Malyshev Cc: Pierre Joye , internals , Andrew Faulds Content-Type: multipart/alternative; boundary=047d7b33d5be754ce604c51e4baa Subject: Re: [PHP-DEV] Pseudo-objects (methods on arrays, strings, etc.) From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b33d5be754ce604c51e4baa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012.07.18. 18:55, "Stas Malyshev" ezt =C3=ADrta: > > Hi! > > > Er, sorry, accidental capslock. This IS a new API. That was an example. > > I'm not saying just put -> everywhere, I'm saying we can keep array_* > > and add a new set of -> functions which are well-designed, consistent, etc. > > What "this"? So far I didn't see any single message discussing anything > about any API. All I see is discussing how we should have -> syntax > working on arrays and strings. IMO this is exactly the wrong place to > start, if your goal is to improve the API (if your goal is to have > "sexy" syntax, it's fine but then I do not see this goal as worthy). The > right place to start would be the API. > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Maybe we could introduce a new namespace for the new api instead of turning the new api oop only (or using objects for groupping static stateless functions into objects only to hint that they are working with the same variable types). Combining this with the previously mentioned lets turn namespaces to first class citizens and allowing exporting whole namespaces to the current scope would make it possible to make the new api available in the global scope if needed. Ofc this still would be a huge task to rethink/reshape our current api. --047d7b33d5be754ce604c51e4baa--