Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39381 invoked from network); 21 Mar 2015 13:43:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2015 13:43:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=nathan.o.wesley@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nathan.o.wesley@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.171 as permitted sender) X-PHP-List-Original-Sender: nathan.o.wesley@gmail.com X-Host-Fingerprint: 209.85.214.171 mail-ob0-f171.google.com Received: from [209.85.214.171] ([209.85.214.171:36860] helo=mail-ob0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 82/A3-18917-6657D055 for ; Sat, 21 Mar 2015 08:43:03 -0500 Received: by obdfc2 with SMTP id fc2so95921154obd.3 for ; Sat, 21 Mar 2015 06:42:59 -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=3G94VmhlhWY30xZ39wWpdTnlzyUMNIcvOd+Dom0ktD4=; b=pexDVfNJuYB4UGb2oYJ9uBASqQvjp/pTbd/rtTRcp2Ik1r4c3vKqqOgN1Aze20ERlh yS8ZhA+6jMgMtkXqDpYXCmsNAO0iUifroNy+wdti/3WOWNfDCFuuovjrU57NxI/O4/5p T40UqQf7zVf4vwLfCcVY5qDkCCri0M24qjFSCgBe18PNrEq9eb5wsT75FUOoAdKpFfJ3 wbmsesx28OqqVF2KInhc/+GWWm72BpxuCuyJpfhPiqXkg1VSKA9HiuzWKKQePGHbMerx LO2TeYZv45lMnNBFuQMvMV2mw3RUZwZz49+Tdvo2Wap56z5VP4alSs3u7M9et26otY1w xBVA== MIME-Version: 1.0 X-Received: by 10.182.246.105 with SMTP id xv9mr68110187obc.74.1426945379384; Sat, 21 Mar 2015 06:42:59 -0700 (PDT) Received: by 10.182.216.10 with HTTP; Sat, 21 Mar 2015 06:42:59 -0700 (PDT) In-Reply-To: <011c01d063d4$34b4dff0$9e1e9fd0$@php.net> References: <011c01d063d4$34b4dff0$9e1e9fd0$@php.net> Date: Sat, 21 Mar 2015 16:42:59 +0300 Message-ID: To: francois@php.net Cc: internals Content-Type: multipart/alternative; boundary=001a11c2fb4c73c0e20511cc9ce3 Subject: =?UTF-8?Q?Re=3A_=5BPHP=2DDEV=5D_Ten_years_estimated_Plan_to_replace_PH?= =?UTF-8?Q?P=E2=80=99s_inconsistent_API?= From: nathan.o.wesley@gmail.com (Nathan wesley) --001a11c2fb4c73c0e20511cc9ce3 Content-Type: text/plain; charset=UTF-8 > > I think that, while attractive, using the same syntax for object methods > and scalar 'pseudo-'methods is too ambiguous. We just need to solve two > issues : intuitive order of arguments and nested call readability. We don't > need to implement the whole OO stuff for scalars. Except this detail, no > limitation IMO. > > if you're going to write API for string manipulation for example you want it either Object Oriented or procedural style. because the API should be fluent method chaining etc. you don't want to stop the chain and wrap it with a function call. (just my opinion) these things needs to be discussed if the internals are willing to do it. it will happen ! i'm completely sure the many developers will support the new API and all of them are willing to help. i wrote some code imagining that we have the new API. PHP will just be so beautiful it will be a HUGE success. Regards --001a11c2fb4c73c0e20511cc9ce3--