Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105938 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96939 invoked from network); 16 Jun 2019 00:52:10 -0000 Received: from unknown (HELO mail-vs1-f41.google.com) (209.85.217.41) by pb1.pair.com with SMTP; 16 Jun 2019 00:52:10 -0000 Received: by mail-vs1-f41.google.com with SMTP id v129so3911957vsb.11 for ; Sat, 15 Jun 2019 15:05:54 -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=o4TLN6OykBF2gQ9gn21qrrDWbuiitFgxkXR5isSH5k0=; b=cfmAdV8hhqp37Wnq4TpT5WPeKsbNJFACLoQwvKMLHzGtK5rkUxr+k7hx9+R1+BdQAF qLVBKCz4rgGSZ0qV/8gekdgtt8a8r4o+UVTdClfYl7Pi3ZTCCgrBekGmm/7ranWJvZVs 0+RAoneXrrdfGSZuBpDUI3zy/rea23C8BlIKDnD2wHAkRu099r5GSZLqFjP+MvTqnTSI kwADTP0lL2e2PRI0UwcX/7bJpCSOgz1rX+d9eRRwYNZ0jHxT6yrelVwNOl/UBuqCqUim F7hc3qfHGEbN8pZ6AIzYFRTPl7MdY5C8Nwv7+sXJSOHk+4hvyXfyAWdqA6BBrfoGhA/5 2OSA== 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=o4TLN6OykBF2gQ9gn21qrrDWbuiitFgxkXR5isSH5k0=; b=nHHm4yrE8K3FcQfliup8kyFJECFhCzdoNODV6lEF+strzRgMXPKATYzqLT211Wgrco GldQNFXSCP1+KeuNvi2uY9k2s+OS3LMd/z5noIP6FYZ2t7BfwMtQ+xiNO630njZ/Me9/ Rbt+rQmFOA8YwNAVRiyo1+L/fznDqNXKu/nCRr8ieSKyx5BzSDve+6oQZC7fnBkp6Ssb PoCtEfFzD3FT3HPV0dGXNVzWP6flz4ffzw8ZMbVkUsuTNPGZWZ8BKJ86AwfCmwkb44av aN53Q+cjrO4oUDf0IorQnOwN7K0+0H6UW2PFC5XbRetb1GYb6UyN2ePBlfpy9IIk9uS7 mjow== X-Gm-Message-State: APjAAAWtkGNQb8DldQcogJY4GNi2Zz7VzVFunlavu1Fw4P9k5nCxF18w OEsqO61k8R07l6v93RiVSAkdmNxDGnw7ydPu1UM= X-Google-Smtp-Source: APXvYqwTkj9l3ipvwzDkL6hf3r9UEhHnRxLg63C2O4+MRmxauaqmivQeM+qPgKNUcSkRpYWJJXWfPSUPR0eZI8/Zk4I= X-Received: by 2002:a67:7c4d:: with SMTP id x74mr48498358vsc.28.1560636354489; Sat, 15 Jun 2019 15:05:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 16 Jun 2019 00:03:41 +0200 Message-ID: To: Marco Pivetta Cc: Wes , PHP Internals List Content-Type: multipart/alternative; boundary="00000000000088726d058b63f770" Subject: Re: [PHP-DEV][RFC] Alternative "use" syntax for Closures From: george.banyard@gmail.com ("G. P. B.") --00000000000088726d058b63f770 Content-Type: text/plain; charset="UTF-8" On Sat, 15 Jun 2019 at 23:57, Marco Pivetta wrote: > On Sat, Jun 15, 2019, 23:53 Wes wrote: > > > Hello PHP, I just published > > > > https://wiki.php.net/rfc/alternative-closure-use-syntax > > > > I would love your opinion on this > > > > I know it seems overkill and wrong to have two different syntaxes for the > > same thing, but I really believe that's all we need to fix one of the > most > > hated PHP syntax bits. > > > > Thank you. > > > > Wes > > > > Tbh, I love the fact that closures have explicitly imported scope: makes it > clear when something is starting to have too many responsibilities. > I personally don't really mind the current way of doing imports and I agree with Marco that it makes clean when a closure tries to do too much. However, I kind of like/understand the syntax proposed so this is more a +0 for me than anything else. Best regards George P. Banyard --00000000000088726d058b63f770--