Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43184 invoked from network); 1 Mar 2012 14:33:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2012 14:33:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=adamjonr@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adamjonr@gmail.com; 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: adamjonr@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-tul01m020-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:48480] helo=mail-tul01m020-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/C7-46815-5D88F4F4 for ; Thu, 01 Mar 2012 09:33:57 -0500 Received: by obbwd1 with SMTP id wd1so812044obb.29 for ; Thu, 01 Mar 2012 06:33:54 -0800 (PST) Received-SPF: pass (google.com: domain of adamjonr@gmail.com designates 10.182.231.100 as permitted sender) client-ip=10.182.231.100; Authentication-Results: mr.google.com; spf=pass (google.com: domain of adamjonr@gmail.com designates 10.182.231.100 as permitted sender) smtp.mail=adamjonr@gmail.com; dkim=pass header.i=adamjonr@gmail.com Received: from mr.google.com ([10.182.231.100]) by 10.182.231.100 with SMTP id tf4mr1961963obc.56.1330612434974 (num_hops = 1); Thu, 01 Mar 2012 06:33:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=NAL6WWAutj03bRuhiE2Lvq6457bgLn0KDQwmRSWyUbA=; b=kuFTweSsXPdr1ECqeMNHOn5SSeLHEKSbXUWRhaJjPc3KqZNIVq0T5GEfiOFCEvhteg Gp4K2fTbnFK8RdJG8vEk9JGEdIn9M+/n7VhndUmZzmUECm3llCksy225yt80SPFUBNq0 phVEaAusB0UZyUgrr4lN5v3n2JIt3YVTHVO0Q= MIME-Version: 1.0 Received: by 10.182.231.100 with SMTP id tf4mr1716324obc.56.1330612434912; Thu, 01 Mar 2012 06:33:54 -0800 (PST) Received: by 10.182.19.104 with HTTP; Thu, 1 Mar 2012 06:33:54 -0800 (PST) In-Reply-To: References: Date: Thu, 1 Mar 2012 09:33:54 -0500 Message-ID: To: Anthony Ferrara Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0447961584451e04ba2f5915 Subject: Re: [PHP-DEV] Scalar Type Intentions From: adamjonr@gmail.com (Adam Jon Richardson) --f46d0447961584451e04ba2f5915 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Mar 1, 2012 at 8:55 AM, Anthony Ferrara wrote: > Please do not implement int, float, etc as an alias to scalar. That's > going to cause nothing but trouble later on. It will instantly close > the door to any type of casting magic (due to BC concerns), be > completely non-obvious ("I hinted for int, why is it a boolean?"), and > cause nothing but confusion. > > If you only want to add a scalar hint, I'm fine with that (for now), > but please only add the scalar hint, no aliases... > > Anthony Anthony, can you provide an example so I can better understand your concerns? Thanks, Adam --f46d0447961584451e04ba2f5915--