Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105948 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 35251 invoked from network); 16 Jun 2019 03:47:53 -0000 Received: from unknown (HELO mail-pg1-f174.google.com) (209.85.215.174) by pb1.pair.com with SMTP; 16 Jun 2019 03:47:53 -0000 Received: by mail-pg1-f174.google.com with SMTP id v9so3711436pgr.13 for ; Sat, 15 Jun 2019 18:01:39 -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=oHuYF55Di11djarFvpLVDl4WOOvgb481jfMZ7vgvEu8=; b=gaUqaIJHNq2N7mr51yRgJys2wcOGaatvSMvxSfAdOqDh0rq4rVjXwooVCKjp1kW4L5 rD3aHvwlSAonb1wzPZQmFWz6nd4xPXv7GIKqqmTYg18Bs3rBeQJM/u7SmWMfuml6yZyB 81rfPahqE0rg47pyCmBjKU/EGP+dX1ekqhmNWO9h/NFW/4GzAEt7AL3XlOtdNLNmkv4p uXWTtgYOaZWV2Ah/muGqcpAqxYRZQC4MX79Xt212CGWb8FubVh+FbjJw3bQKWPAxE3e8 CUrndHd7Sgs6HZjOKIBkNAA4rHxfolX7pmWRATRT2bU5mKOqnyV5971/YvFze+flunYg zcPA== 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=oHuYF55Di11djarFvpLVDl4WOOvgb481jfMZ7vgvEu8=; b=appRPa90Ll1sHw42/FJFS2D2DAmLk3xpihjY9IhYCKxL3WFFhxfwbpcksqQAtxLMV8 adb8rB/X3YUBh3kFBM/CNSmZpMPIe6o56iwSQ34APWe7Tk9tkmHOs8ijOUVnUia7z2A3 CvTmDsbkBRab1OTb+LYojYGqGhy7X6FwB7SELoIDir1nLXhci/JbVmZLI833dCr7TiSY Ay7F1MUaRsLYt2q22c9YAIHD12m7y80+vU0ogvSTgHbUyit/oM4DOIQ7LArbWmIKuEdA 8MHyrbN7jynSRk8fSmHJJk6Y6HHjNN2gJAcWw8+ugNLqvDX5M72vPmg6p2FthVCDhZpY 9Reg== X-Gm-Message-State: APjAAAVDRn8p+e2alwRKuj7Ug1mgRO/X+28LxP2dfXi+kk8ygir9ETum oF2Q3U8Zv3dAg4e8jxrlmHANy3dJfS3A5l9oCTg= X-Google-Smtp-Source: APXvYqzREzWMjGDoMpD+1HoHJ2DR1b2+H+Gase3ctKSO8X9NbxSUk5VAVGHJf0vexlzCMEsW8kzZICSjpNulauZw5hE= X-Received: by 2002:a17:90a:7f91:: with SMTP id m17mr18704908pjl.86.1560646899302; Sat, 15 Jun 2019 18:01:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 15 Jun 2019 18:01:28 -0700 Message-ID: To: Wes Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000000d8395058b666c6f" Subject: Re: [PHP-DEV][RFC] Alternative "use" syntax for Closures From: mo.mu.wss@gmail.com ("M. W. Moe") --0000000000000d8395058b666c6f Content-Type: text/plain; charset="UTF-8" Hello, if you are upset; it's not the place here; your argument is efficiently based on problems of indentation and handling commas properly. Moreover, but not least, you have no idea what a lambda is; if we admit it what you propose; that is not feasible in PHP; why? because it would require a preprocessor; in the case presented, it would be necessary to import all that existing scope then making a selection; nobody wants that to happen. If you do not accept any rational criticism; you should think of doing something else; I do not know; gardening maybe? who knows. P.S For my use of the "closure" you made a fool yourself beyond what you can grasp; but anyhow, my dear, it's refreshing, you made smile. On Sat, Jun 15, 2019 at 4:34 PM Wes wrote: > Welcome to the first inevitable patronizing message... No, my code is not > smelly. If something is smelling for you, check your armpits. > Importing 4 variables is not rare. If you think it's rare and should be > done differently, maybe you should first actually do something with > Closures before telling people they are wrong. > And if you use actual names instead of "$var1" or "T1" you will see why I > am proposing to move the lexical imports where they are the least invasive. > --0000000000000d8395058b666c6f--