Re: Possible RFC: UniqueInterface that throws exception at refcount > 1

From: Date: Sat, 11 Jul 2020 16:10:41 +0000
Subject: Re: Possible RFC: UniqueInterface that throws exception at refcount > 1
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-110948@lists.php.net to get a copy of this message
On Sat, Jul 11, 2020 at 5:32 PM tyson andre <tysonandre775@hotmail.com> wrote: > This is something that makes more sense in compiled languages like rust > that can enforce uniqueness at compile time, > and the dynamic nature of php makes that less practical. > Also, crucially, Rust has language features that require a programmer to specify whether each variable is mutable or not. Without it, Rust's borrow checker wouldn't be possible. PHP has nothing like it, and introducing it at this stage would be prohibitively hard. -- Best regards, Max Semenik

« previous php.internals (#110948) next »