On Sat, May 16, 2020 at 12:14 PM Pavel Patapau <algerd....@gmail.com> wrote:

> Hello everyone,
>
> I want to propose new syntax addition - guard statement, that executes
> code only if expression equals false and must contain control-flow
> changing code, and written a respective RFC


Both your initial email and your RFC mention
https://en.wikipedia.org/wiki/Guard_(computer_science)
Note how no language mentioned in that article has this keyword, `guard`,
or any special language construct, honestly. That's for a reason: the guard
statement described in the article is a pattern, not a language construct.
Also, consider that one can pronounce naturally "if foo [then] return bar"
but "guard foo else return bar" doesn't make sense English. I would go
further claim that in my opinion all current control structures in PHP are
intuitively understandable to anyone familiar with programming but not the
language. Can the same be said about `guard`?

-- 
Best regards,
Max Semenik

Reply via email to