Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106782 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35150 invoked from network); 29 Aug 2019 02:11:36 -0000 Received: from unknown (HELO mail-oi1-f174.google.com) (209.85.167.174) by pb1.pair.com with SMTP; 29 Aug 2019 02:11:36 -0000 Received: by mail-oi1-f174.google.com with SMTP id v12so1099523oic.12 for ; Wed, 28 Aug 2019 16:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xxEop9iTT3VrLMl5l8Rrt+2JR/ZTxW8xKYT9m/Q9RZU=; b=UiAVsQeAuR0wMpAo3qywUdngit+aAmpfuZQ6Qx8Pi/umUgbNKFLYecl3H9tsdKxEuE L2Raj2di6w2uUXIdfC92wxG2kYQux2xDMQPeRswKpaC9YBKYNh1Qj9fZy9vQ/+tqPLZY La+9g4LuleWok16vCgpxfYcrd0RA3SoOq+Q8Non23Jamxqphjl9s7gCOTJRbLOYP0B5H KaovBI63y8C7PLGL/hFbLuorCt/FLEp0ZcmwiZMK9M5QfUoUCFWvGDUXs/iv9GyfO9gY Ln+Y6N+2+AbhhbKLTsI+OOkeOKWnPfyS154jafMn7XhuPmLIqPVppxMxj3UC19h+cmM9 hrMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xxEop9iTT3VrLMl5l8Rrt+2JR/ZTxW8xKYT9m/Q9RZU=; b=lEismuTOEnYHuyhOiu0+FvYLExm46QuusqMri8NoAnxnot52grPJ2+SF+uYkoog/px dzpl8SSGXkUTza1ARtEKKTbMp2BW50XrAqwnSD5LJUW6oqj0Kwe2UcluvlUIHVZPPTJ6 syoL9gQaSZQZMJ20drBJ9LzSEVGqzlntkuflZ0oEPI3x/3ETPUYl6AhCQhUaRC/Jr1TR 8vQoeHHZ1OgV6LhxWZ879xtXpBAUXnwy9dh9E2dE+UlvYSS0odAg9smRXpWvfVMSmkxU NLu5zaVATNeUZAwNa51NPCOZjwpG1EOvYhy5fNpe2SuYCbXdcDN9eUxNiwCwoZDg37cT 5WWA== X-Gm-Message-State: APjAAAUir0d/Z8+q1PzRSSO2XiVCiw/LFI9piMPNCDawLY2k+wh+In4g KiOaGC1RGbgwLaGlWYXWyQLZsSb6Rjd1QaxpDxwQ+w== X-Google-Smtp-Source: APXvYqxlbsdK/COVUpyw2LcQuskrq0B3X+x6m6wq4AlrIcYpTWanSCuXppY9E37G9AU0UhAatr0RjnfWFwEs7Rm38wI= X-Received: by 2002:aca:4e8c:: with SMTP id c134mr4559575oib.137.1567035831945; Wed, 28 Aug 2019 16:43:51 -0700 (PDT) MIME-Version: 1.0 References: <6ed74ae0-5feb-39de-a39a-f9a8f80401b2@gmail.com> <342BB5DE-80D0-405E-8C71-D959F38D17E8@gmail.com> <98CDCF47-D262-449B-92BD-1E041A467B21@gmail.com> In-Reply-To: Date: Thu, 29 Aug 2019 00:43:38 +0100 Message-ID: To: Stanislav Malyshev Cc: Matthew Brown , Internals Content-Type: multipart/alternative; boundary="0000000000001d0fe8059135f641" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: hisamsonolu@gmail.com (Olumide Samson) --0000000000001d0fe8059135f641 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 29, 2019, 12:33 AM Stanislav Malyshev wrote: > Hi! > > On 8/28/19 4:23 PM, Matthew Brown wrote: > > $foo++ becoming 1 when $foo is undefined is not intuitive to me. > > I guess we have different intuition. > > > To take a very trivial example, that behaviour causes =E2=80=9Cfor ($i = =3D 0; > > $i < 10; $I++) {}=E2=80=9D to loop indefinitely. > This is rather shallow issue, which any modern IDE would highlight for > you in about 0.5 seconds. No need to change the language for that. > Frankly, I have hard time remembering when any of such typos ever get > past IDE check since I started using IDEs. > And, of course, it's completely obvious issue - you could as well forget > to write $i++ at all, or write $j++ and have $j defined somewhere... > there's a lot of artificial scenarios one could think of. No reason to > change rules of the whole language because of it. > Can you point me to an IDE that runs on the server? I think you are mixing static analysis error with dynamic runtime analysis. IDE can't point to an error it doesn't know about(which I didn't code using IDE but use notepad, where I didn't run full test before publishing to production). I don't think it makes sense to allow the language be a home of "anything goes, no innovation". A language without specification. --0000000000001d0fe8059135f641--