Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14760 invoked from network); 24 Feb 2012 02:45:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 02:45:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:49421] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/10-10329-1D9F64F4 for ; Thu, 23 Feb 2012 21:45:38 -0500 Received: by vcbfk13 with SMTP id fk13so1504263vcb.29 for ; Thu, 23 Feb 2012 18:45:33 -0800 (PST) Received-SPF: pass (google.com: domain of kris.craig@gmail.com designates 10.220.142.5 as permitted sender) client-ip=10.220.142.5; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kris.craig@gmail.com designates 10.220.142.5 as permitted sender) smtp.mail=kris.craig@gmail.com; dkim=pass header.i=kris.craig@gmail.com Received: from mr.google.com ([10.220.142.5]) by 10.220.142.5 with SMTP id o5mr189731vcu.68.1330051533285 (num_hops = 1); Thu, 23 Feb 2012 18:45:33 -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=fJNZdaFOiJLmh1A4AVyV+KsTvIUYSzAWDHyVXPd8ans=; b=uJjKUpWwBi6BT1Tnq+FU5G+dUCzglw957LFdyUeXl7ObFfJsywa7hTwb4A4rrncD4y KYMSODbDRs3V5MtDl9xcdMJWhAp4j7CjSNFGOKs7q/HN71MaO+nTrzCLRu+YqIMxYlJg YuzwX0RfDwZoYzgghzmEWSV2bLtKjeeVcqvsQ= MIME-Version: 1.0 Received: by 10.220.142.5 with SMTP id o5mr152866vcu.68.1330051533012; Thu, 23 Feb 2012 18:45:33 -0800 (PST) Received: by 10.52.91.5 with HTTP; Thu, 23 Feb 2012 18:45:32 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2012 18:45:32 -0800 Message-ID: To: Samuel Deal Cc: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= , John LeSueur , Stas Malyshev , Anthony Ferrara , Dmitri Snytkine , Sebastian Krebs , PHP internals list Content-Type: multipart/alternative; boundary=f46d04388de9287d7004b9acc10e Subject: Re: [PHP-DEV] [RFC] Enum proposal : Without type hinting first ? From: kris.craig@gmail.com (Kris Craig) --f46d04388de9287d7004b9acc10e Content-Type: text/plain; charset=ISO-8859-1 Agreed. Just to clarify in case my post confused anyone, we are not (at least to the best of my knowledge) in the process of developing the 6.0 release right now, nor am I suggesting that the ideas I floated should be in 5.x. I apologize if I made anyone scratch their heads needlessly lol. So yeah, I guess what I am saying is two things: 1. We should start thinking (and talking) about PHP 6 now and what it should look like. 2. Variable type hinting (as discussed in this thread) should be discussed in further detail as a fundamental change for 6.0. I'm not sure whether or not I should create an RFC for this yet, as the idea is still a bit vague. But I'll go ahead and create a separate discussion topic here on Internals if there are no objections (later, though; right now I'm going home ;P). --Kris 2012/2/23 Samuel Deal > Hi, > > Discussion disperses a way I didn't expect. > > As far as I know, next PHP release will be the 5.5, and would have a > strong compatibility with 5.4. > So strict typing would not happened for 5.5 release. > > If I understand correctly, at best, PHP 5.5 will have weak type hinting > (like > https://wiki.php.net/rfc/typecheckingstrictandweak#option_1_current_type_juggeling_rules_with_e_strict_on_data_loss > ). > > So what do you think about having enum implementation in PHP 5.5 without > type hiting ? > Or with weak one if finally PHP 5.5 is released with weak type hinting ? > > Perhaps we shoulld discuss about what kind of type hinting we want for 5.5 > and 6.0 in separated threads ? > > Regards > -- > Samuel DEAL > samuel.deal@gmail.com > > --f46d04388de9287d7004b9acc10e--