Re: [RFC] Pattern Matching

From: Date: Wed, 10 Dec 2025 13:37:45 +0000
Subject: Re: [RFC] Pattern Matching
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-129580@lists.php.net to get a copy of this message
I would just like to point something out regarding this sentence in the RFC on the "Variable pinning" section: > This particular syntax was chosen as it is the same as in Ruby, the only other language we know > of that has this functionality. I don't know how helpful this info is, but I'll provide it anyway. Elixir and Erlang also have the functionality and its syntax is the same, using the ^ character. https://hexdocs.pm/elixir/pattern-matching.html#the-pin-operator

« previous php.internals (#129580) next »