Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104525 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 50023 invoked from network); 26 Feb 2019 23:50:51 -0000 Received: from unknown (HELO mail-it1-f169.google.com) (209.85.166.169) by pb1.pair.com with SMTP; 26 Feb 2019 23:50:51 -0000 Received: by mail-it1-f169.google.com with SMTP id v2so5931848ith.3 for ; Tue, 26 Feb 2019 12:37:18 -0800 (PST) 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=WjBVrYimzA6nAQ//qbZ9UzF9F8Y5BRWWIAFbVwNvEt4=; b=auDb8PKD1TsS/mJRT8a6NYv967OykjnP4/klO+CFlNz/AT2q6hUW00cT7ukJmzTX48 kXxVFyxQCNz2hRQ/leY/9lMltFCN7+lDnROKPNridfxJKcyTwY9MGGpgmUa9wjnc3XCF e9DAnn65KDVl7tc3GmhUOi1aKi9hRBitXhDA1n+6hBL/GiZ6OLDye3dEoGWvK7H5xTbv syICrdpiZKwU1lNosE4O7yR5ALZBQeQAhharnVfXfjO9JwTDmr8JSikCyNQeWppDPaNF H52jSfAhnAW1Pohm/WTKJUPGdU/EKUsZRuOA/fu+xp8yG274+Fbhg0gr36nb9p7Z8Vyn QJgA== 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=WjBVrYimzA6nAQ//qbZ9UzF9F8Y5BRWWIAFbVwNvEt4=; b=W4dvmLsxocXQkf+Y5TOfwAoWKJwO1bRNSmeBLR9SedwWc3pPsOyTkqugl/9RMvzXSr GaGOZr8j/wHU6I9RnRpY3Ns1KyyfAImObnbVlxvsYyHw2QHSubavXWBOLrACEA++sibJ blXsNECBCPdCvY6U8YuhcW5XrgOBTP/eTfwVyt4FAvOpJsIZYDhGStItX6opyzfjGtUz 4YvcOneDCrOcpFx9oevcsX/YByupZnFFSJ2d5cb1w8F2qhgZpVBnUZh4OL4Zdom/w4te l0pxb+dFY4XAq/dsSVHLNrbqlhPhfCRDwRLN8cXxBhBJW3w95fyXSzTwCn1pSOdzj9jD LkLA== X-Gm-Message-State: AHQUAuadur3IqDKhbpwBVxQSPdEBgvw1rd3vzGTBTO7kKRF43TO+Gasz uT7e+dob/PVfIAaK7FVKaBhWEEFHGOBYn5vQ68i3ZTOL X-Google-Smtp-Source: APXvYqytrdm2J5pwPTkSrD0N0aoHMeot735D5+5V4B2Dah3H388WYAa3KT7CllZP2yej2uEHppQyBTh2n/3t9RjRmWA= X-Received: by 2002:a24:4d4b:: with SMTP id l72mr3429355itb.177.1551213438407; Tue, 26 Feb 2019 12:37:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 26 Feb 2019 21:37:05 +0100 Message-ID: To: Joe Watkins Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f79c9b0582d2051a" Subject: Re: [PHP-DEV] [RFC][Vote] Weakrefs From: ocramius@gmail.com (Marco Pivetta) --000000000000f79c9b0582d2051a Content-Type: text/plain; charset="UTF-8" Hi Joe, On Fri, Feb 22, 2019 at 12:54 PM Joe Watkins wrote: > Morning all, > > The vote for weakrefs is open: https://wiki.php.net/rfc/weakrefs > > Cheers > Joe > Just posting to clarify on my "No" vote: I am generally against having more features that (by design) introduce spooky action as a distance behavior, especially on references. The fact that this might be useful for tools like doctrine/orm is (in this specific example) mostly because Doctrine\ORM has a very leaky design concept (UnitOfWork) at its core, and most folks don't want to micro-manage it, but would rather defer memory management to the engine. While it is true that weakrefs introduce a technical solution for those folks, they also open pandora's box when it comes to managing in-memory state, and yet another code location to constantly monitor with the debugger, which is something that I'm not looking forward to. Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --000000000000f79c9b0582d2051a--