Closed robrix closed 9 years ago
This would be ? in regexp but we can’t use a single postfix ? because it’s reserved for optional chaining.
?
Postfix ?? is available, as are other names like |? (I read this kind of as “or nothing” which is apt).
??
|?
Probably should avoid ?? because that means “zero or one ungreedily” in some regexp dialects.
@jspahrsummers employed postfix |? in ogdl-swift, and I dig it.
This would be
?
in regexp but we can’t use a single postfix?
because it’s reserved for optional chaining.Postfix
??
is available, as are other names like|?
(I read this kind of as “or nothing” which is apt).