We already know multiple optional bindings can be used in a single if/guard statement by separating them with commas, but not with &&
e.g.
https://docs.swift.org/swift-book/ReferenceManual/Statements.html#grammar_condition-list
The Swift grammar says that the if
statement condition-list
can be composed by multiple condition
separated by commas ,
A simple condition can be a boolean expression
, a optional-binding-condition
or other things:
So, using the comma to separate multiple expressions is perfectly fine.