Skip to content

'Is' pattern in pointers #4423

Answered by huoyaoyuan
kyoyama-kazusa asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the real reason is syntax matrix completeness, because we don't have a reason to ban it.
Allowing pointers to be handled by pattern matching is useful for nested cases like is { PointerProp: not null }.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kyoyama-kazusa
Comment options

Answer selected by kyoyama-kazusa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants