Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25688 invoked from network); 16 Mar 2015 22:01:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 22:01:25 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:34077] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/0E-34940-2B257055 for ; Mon, 16 Mar 2015 17:01:23 -0500 Received: by obbgg8 with SMTP id gg8so46572236obb.1 for ; Mon, 16 Mar 2015 15:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=ihjnHV0YU8UtaC5/rpfUKsQPpQ89bQkITAneulhDStY=; b=p1U5JfYMhe206SR9W7PzqEvxj8nlWv+89SR/019GCRGAWZghTYdLttI4II2axgo+EK mgw30NGHwvCwqFF0Jr7rZeqCTbSH0c7z+jQPPDgURJMLHw9o4BBrXXWl+8JXb4Vn/5cm mjwo/MJxqgVXyYJ1NluYbPC2Un7XHfswc2ygRLoMOF+cHJQviGWJXojfnpPRq4CTdFs7 iVdqNa58olquMM/zLUbzqhAU01AuPZAPfWV2lTBrj3IK1Bq4evMMyGTDSSDwBr5Aj7aO J360q/oOYcp2kgZTTlJyvqod6bSaZpirYKSoAeGwoGNzyqD9IUvQkuafCQW/3nMCpIlI 4L0A== X-Received: by 10.182.39.195 with SMTP id r3mr9331552obk.44.1426543280083; Mon, 16 Mar 2015 15:01:20 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.58.2 with HTTP; Mon, 16 Mar 2015 15:00:39 -0700 (PDT) Date: Tue, 17 Mar 2015 07:00:39 +0900 X-Google-Sender-Auth: 0QJggwmVE7jVfDuXhXWAOIjl2hU Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c35eb0775e8c05116efd87 Subject: [RFC] Introduce Type Affinity From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c35eb0775e8c05116efd87 Content-Type: text/plain; charset=UTF-8 Hi all, I had this idea for a long time, but I didn't have time to mention. Since I did mention this idea in basic type hints thread, I've created RFC for it. https://wiki.php.net/rfc/introduce-type-affinity SQLite2 was typeless. All data is stored as "text". Type affinity is SQLite3's idea to have native type for better performance. https://www.sqlite.org/datatype3.html PHP may have the same idea for better performance and code. It works well with coercive type or strict type (Not currently proposed one, though) Comments are appreciated! Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c35eb0775e8c05116efd87--