Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96122 invoked from network); 2 Mar 2015 00:18:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 00:18:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=terry@terah.com.au; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=terry@terah.com.au; sender-id=pass Received-SPF: pass (pb1.pair.com: domain terah.com.au designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: terry@terah.com.au X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:63774] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/32-17251-25CA3F45 for ; Sun, 01 Mar 2015 19:18:27 -0500 Received: by mail-qa0-f42.google.com with SMTP id w8so20611798qac.1 for ; Sun, 01 Mar 2015 16:18:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-type; bh=NE2Cvgg2JmXyxvW/l+4spllTk7RhgvT1UIWAvKMQqwQ=; b=QArpat38IkiVHWv6ymqU0b/X1I/JfPo9otqpSD/M113EtMNAIRjOmRquwTc5vY4W2i EF1qyhQRDBC8DrU1RAWRsVUMnbz+JQ8QrNJawp8wJryoTQZBNUnakEn0Q10xLkjLQ+wt Vo52DHbBiF4qH6G3ZOav+dpZWzNJHJ2Wl3hF+lOsi8WFLWMMN8DARnkT0BeaDCFdErdt XDO6HUR7imlpqHNcknPKtM7BPRsLVelia3vtpcqUOUHBGrJSc7ISPcC7rE2iVOJfF78U 3dSmUG0/zK8HADAKpsx5ypQXgfzKsmT65xedDm8IK8ci5/Ck/1LsYxOD+E9e7XxsfuSg zMxA== X-Gm-Message-State: ALoCoQndbhTfnwo5kYVeszP/2EKY4hlZz7k7BDvTVD5L/TKN2OmnmZfNGJeYHOpSwyGhXFPfMei0 X-Received: by 10.140.233.204 with SMTP id e195mr48355302qhc.74.1425255504488; Sun, 01 Mar 2015 16:18:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.36.65 with HTTP; Sun, 1 Mar 2015 16:17:54 -0800 (PST) X-Originating-IP: [101.165.94.3] In-Reply-To: References: <5E7DF0C5-BCB4-432A-A876-A5057FEBFBB5@gmail.com> <54F320E9.5000706@fischer.name> Date: Mon, 2 Mar 2015 10:17:54 +1000 Message-ID: Cc: internals Content-Type: multipart/alternative; boundary=001a11376e400f465d05104328ef Subject: Re: [PHP-DEV] Consistent function names From: terry@terah.com.au (Terry Cullen) --001a11376e400f465d05104328ef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2 March 2015 at 01:18, S.A.N wrote: > Maybe better implement for method calls on primitive types in PHP 7? > https://github.com/nikic/scalar_objects > > =E2=80=8BI've searched through the internals archive looking for debate on = using scalar objects without much luck. I'd love to see some discussion around this as it seems like it would go a long way to resolving some common pain points in PHP without BC like: - type hints - inconsistant function naming - needle/haystack - unicode And, the method chaining of common string/array manipulations makes for cleaner, easier to read code. I've used the scalar objects extension and found it a pleasure to use over the standard function but I can't use it in my larger client projects due to it not being in the core and it's experimental status. =E2=80=8BAlso see: https://github.com/rossriley/php-scalar-objects=E2=80=8B > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11376e400f465d05104328ef--