[PHP-DEV] Re: [RFC] Pattern Matching

Some typos I spotted in the RFC:

“Structure patterns” → “Object pattern” section: color: green​ should be color: 'green'​ (twice)

“Future Scope” → “Regex pattern” section: “idiation” should be “ideation”

Also, to better justify the syntax for variable pinning, perhaps it might be worth mentioning that the caret character kinda looks like a pin? I’m not entirely sold on the syntax myself, but I think that visual association makes it easier to mentally parse.

Finally, in the research document, I see there was some confusion about the C# syntax for variable binding. I think the idea is that the right-hand side looks like a variable declaration, so since int foo​ is how you define an integer variable named foo​, therefore it makes sense to reuse the syntax in bar is int foo​.

On Fri, Dec 5, 2025, at 9:10 AM, Zebulan wrote:

Some typos I spotted in the RFC:

"Structure patterns" -> "Object pattern" section: `color: green`​
should be `color: 'green'`​ (twice)

"Future Scope" -> "Regex pattern" section: "idiation" should be "ideation"

Also, to better justify the syntax for variable pinning, perhaps it
might be worth mentioning that the caret character kinda looks like a
pin? I'm not entirely sold on the syntax myself, but I think that
visual association makes it easier to mentally parse.

Finally, in the research document, I see there was some confusion about
the C# syntax for variable binding. I think the idea is that the
right-hand side looks like a variable declaration, so since `int foo`​
is how you define an integer variable named `foo`​, therefore it makes
sense to reuse the syntax in `bar is int foo`​.

Thanks, typos fixed!

--Larry Garfield