Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108203 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76046 invoked from network); 20 Jan 2020 15:50:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2020 15:50:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 855041804CF for ; Mon, 20 Jan 2020 05:58:22 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jan 2020 05:58:21 -0800 (PST) Received: by mail-oi1-f182.google.com with SMTP id z2so4545237oih.6 for ; Mon, 20 Jan 2020 05:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=DwlyIfUGai+SoMXp4lhVwkuR4q4uRS+TXK/oESU6pfM=; b=kTS5nvZR/hq4hQyMyQkeb3OalZpdh2vMmlCei0ZmtdobtzAUeavvB+PwKPZ10v819w Y/ZzD3lOM3xMxIWGdjaMQHlJR9+RxDjfhb3E5BYKQL8aQiqWsZA9cSk8BDkz4oXeOhyw +9ExfADT97fLxEoVpcoCuuWCc8UhWMA1NKGjE9H1z1tmiURmG4Sih1ZTmGX6psRC2SwT uUR8wEekigQCa6vhV6XekeCAW/r8LeC9rMTF/P8G8SJqYCNLmtHWNWY9bJFJav5Wzssv 1lgFYJnHou97WJIcmVTgpKuKF6cegdzZcL/yFD8lzhUUPVFhecmpQdJPEbY5yOLmvleL 2eog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DwlyIfUGai+SoMXp4lhVwkuR4q4uRS+TXK/oESU6pfM=; b=m7WNipbf0EmHjkEXrOm3XFCaYIBAELyOJRclwOCEoNmKdkn99vGA6iCPQyRKzgjpUe BUWaZzPa5kn11B7+MEE9UXtJRuKYC4eWvJ7Xg47nz9Pwx5uf89ECDuaf98d1VfQUvx9M K48GjJl/8S0FebXa8NHpc0pFrfOtgDMFmTZ2SruyQ/qenAWIOIh4IQyHOB1Deqp8vrKo +CfiBJ1kRtJocLzFJh2kjxci4mALenoToyRvC1ElGvf3POV4VvZYCxwwTN9rXEZ3txTR QT/8E+T/v/JG8pd85zmFoy+otNfmVsTeQS6hIaQDdJKqEodYP5XUuT1LaoZ8XI9JzGhv j5TQ== X-Gm-Message-State: APjAAAVi1mcA48HPjSmSWNQnqUIrDPVRh6StMDMlTXptxGRSMoBk54q2 bIniWPDD56Po1P5VYahI2j+6wx/wxr1Ah+r7fJLzE32jDOc= X-Google-Smtp-Source: APXvYqwP+W0Ua/4uUdquCMmgwQ90oo8KC7TuCz0I907tUoomW/h5JTonhj1MUuo+xgsgyMp2PAfQOQ4rhRxEa+unloU= X-Received: by 2002:aca:5745:: with SMTP id l66mr13157695oib.3.1579528698552; Mon, 20 Jan 2020 05:58:18 -0800 (PST) MIME-Version: 1.0 Date: Mon, 20 Jan 2020 14:58:06 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000fd694e059c92ae34" Subject: WeakMap vs PECL WeakMap From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000fd694e059c92ae34 Content-Type: text/plain; charset="UTF-8" Hi Internals, A year ago, when WeakRef was being proposed, some objections related to the PECL Weakref package had lead the RFC author, Joe Watkins, to rename WeakRef to WeakReference to avoid conflicts. However, the latest addition from Nikita Popov, WeakMap , did not take the same argument into account, therefore conflicting with PECL WeakMap . *First of all, how will this be handled in the docs?* Now that we have a conflict on WeakMap anyway, and now that the PECL package has been deprecated, and provided that the conflict can be gracefully handled in the docs, *is there anything that prevents WeakReference from being called WeakRef?* Could we have both names in PHP 8, like WeakReference being an alias for WeakRef? Thank you, Benjamin --000000000000fd694e059c92ae34--