Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83425 invoked from network); 10 Jan 2018 18:48:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2018 18:48:36 -0000 Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.177 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.161.177 mail-yw0-f177.google.com Received: from [209.85.161.177] ([209.85.161.177:44517] helo=mail-yw0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/C7-39025-300665A5 for ; Wed, 10 Jan 2018 13:48:36 -0500 Received: by mail-yw0-f177.google.com with SMTP id x62so3592839ywg.11 for ; Wed, 10 Jan 2018 10:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=STvM6JQbCS3CYeNYh2cxnTlmRfGRp0wBZSzSY/aOxqI=; b=Wk+0hu47Fs0e87oaow0IvLxUk0HcWIFtNtuAkVHyfFAT0DQUy/OgKvcHqnMFkcJAms by/heiviWS0L5uBQx9ZD2GNKTNgPka2px1SH81H0t/cpNGTkT8VpwDdo3IVvgsE0J2Ik imP7w06XU3hcNvygELcY+9R3TM4+7SvwagBscQAS0QQGMlarrrvi/f39UFWMnrxvqJs6 PQcweyG0jJaLkAewSfwfaYBGbZR3yJJ8Ow2ZFsR7V87g5EMRRDIVSr2+zbj1JoyhKlZh BC7H/pNXawmj2ICPUVBXGBRm5FNad94LiY2HOD8AkHeiow8won2pqI1sbRScLL+U9UN7 tHsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=STvM6JQbCS3CYeNYh2cxnTlmRfGRp0wBZSzSY/aOxqI=; b=DyU4jq+Ao8oXq1PZp+kMgAWxiZ5F3SkBqGqotyr+w98NMETn0mIAbxhKmff+zzx+ng /vILhbOLI5wX6/guSduLo9LmLcyvackbDFoJszCMa+nbzPz5ptgZJMcMTuo+TX4b1Ixx o+xFqhAV95hfDuX2SIlNi0+8IGLuDOqUZI4OuypvjsSa465QgItSkyV7bdAGpmxF49PU PaEDV793oVseUBPPFzdWHOuGI1Gb7I8AdXhZzqw/6yInI6wbtyJ1LA3u0UzmUMvgJEzx 9z90eFsDEgPGp5Lh4Ph+lgN3BHKJAsGIQl4ZnnghKit06ollsjhx/e/lzElnRV73ap3p 3WNw== X-Gm-Message-State: AKGB3mKJ7izX9BirL8Gi1He526mN1tIK9FMvJjlEBwahxvKXSeb/e3ZY 6cZSMNIdCBn0vukUfyHe/e3MMQ3YAxNWoqQG2xI= X-Google-Smtp-Source: ACJfBotlSQ5MvvNWIUqA/IFwQVQhOu1OBeCNJJfnn+8Cpov3yXrR+pm+BsXddneFfyDFCXBLmvq0KVihfBxCrAF6dkY= X-Received: by 10.13.217.14 with SMTP id b14mr18020724ywe.81.1515610112706; Wed, 10 Jan 2018 10:48:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.201.7 with HTTP; Wed, 10 Jan 2018 10:48:31 -0800 (PST) In-Reply-To: References: <9a3a8760-f65a-a5c0-b318-1830a9a986c3@gmail.com> <9352F6DF-9940-49A2-9B1D-FA9258E9738E@lerdorf.com> Date: Wed, 10 Jan 2018 12:48:31 -0600 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="001a114fbd8462ccc90562707a10" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Strong Typing Syntax From: tendoaki@gmail.com (Michael Morris) --001a114fbd8462ccc90562707a10 Content-Type: text/plain; charset="UTF-8" On Wed, Jan 10, 2018 at 12:27 PM, Rasmus Lerdorf wrote: > If you stay away from trying to change a 25-year old loosely typed > language into a strictly typed one, then the RFC becomes much simpler. > > -Rasmus > I have REPEATEDLY stated that is not the goal. I don't misrepresent what you say, please do not do that to me. I want to see strict typing as an option, not a requirement. Arggh... I said I'd stay away from implementation, but would this work? Working this into z_val in any way is problematic. So, store elsewhere? Create a symbol table that holds the strict variables and the types they are locked into. The strict keyword pushes them onto that table, the var keyword pulls them off. When an operation that cares about type occurs check that table - if the var appears there than authenticate it. I would hope that if a programmer doesn't want strict typing the overhead of checking an empty table would be minimal, even if repeated a great many times. --001a114fbd8462ccc90562707a10--