Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85579 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99510 invoked from network); 31 Mar 2015 08:42:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 08:42:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.48 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.192.48 mail-qg0-f48.google.com Received: from [209.85.192.48] ([209.85.192.48:36511] helo=mail-qg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/93-06567-20E5A155 for ; Tue, 31 Mar 2015 03:42:43 -0500 Received: by qgf60 with SMTP id 60so8331626qgf.3 for ; Tue, 31 Mar 2015 01:42:40 -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:content-transfer-encoding; bh=th1DdgPmKn4/04NdZ8zYH5BgQzoPyQ2MES+mr4cdXrA=; b=d0MANmGeQuHcW0tmOLBvw3Hwt13XQdIlO5BpHFkn3H+4FRHKL7l486sbDWFPWvK1Ys muOKhhjO7vTcHL8/DWgoUsuAeSEZWl8k1s2WGwqD9NvTwa8T/l1O3DgdoCmNQF0bcvME 1cDohGTINk1oTuN021JLKsnAPZRC9zEU6gwvz57++hn8608rnZJ/t7DfAG2OukOLUZec Kix+yUpIzBMHsHLiVIpvrWHIJ7KuUP46LRptbeCoYQjdJBqgWtStTzzus6NAj9QeImhM 0FOFm0QDBNfYXjV0+nHSJ8cOXXvQ8G3LMTqGy7540sjVjFOHGv+cJNyx3BrgOXTck4og 0Vxw== MIME-Version: 1.0 X-Received: by 10.55.15.159 with SMTP id 31mr77323559qkp.29.1427791360070; Tue, 31 Mar 2015 01:42:40 -0700 (PDT) Received: by 10.96.160.99 with HTTP; Tue, 31 Mar 2015 01:42:39 -0700 (PDT) In-Reply-To: <3a939905cd5a06158c9e99d8af26e596@mail.gmail.com> References: <3a939905cd5a06158c9e99d8af26e596@mail.gmail.com> Date: Tue, 31 Mar 2015 10:42:39 +0200 Message-ID: To: Zeev Suraski Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Naming of 'weak' type hints From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Mon, Mar 30, 2015 at 4:16 PM, Zeev Suraski wrote: > All, > > > > One thing that I think we should change is how we refer to the =E2=80=98w= eak=E2=80=99 type > hints. The word =E2=80=98weak=E2=80=99 has a negative ring to it, and co= nsidering this is > how the language behaves across the board it=E2=80=99s a pretty bad name = for this > feature. > > > > Personally I think we should go for =E2=80=98dynamic=E2=80=99 when we doc= ument it, as this > is the common way to refer to this behavior (dynamic languages). We coul= d > also consider going for =E2=80=98lax=E2=80=99 or =E2=80=98lenient=E2=80= =99 as the opposite of =E2=80=98strict=E2=80=99, > although I think we can easily do without introducing a new word into the > vocabulary here. > > > > Thoughts? > > > > Zeev Hello, I would definitely stick with "weak"; it is common naming used across many languages and textbooks. Also, why is the strongly typed mode named "strict" anyways? If anything should change, it should be strict to strong, so PHP doesn't look like a special snowflake. Regards Pavel Kouril