Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 6, 2026

Summary

  • Add EmptySequence and EmptyAlternation diagnostic variants
  • Add validate_empty_constructs validation pass in analyze phase
  • Ban {}, { }, { /* comment */ } and [], [ ], [ /* comment */ ]

Why

Empty sequences and alternations are meaningless constructs that should be explicitly banned, matching the existing ban on empty () and "".

@zharinov zharinov force-pushed the feat/ban-empty-constructs branch from f038b34 to b3ae8e9 Compare January 6, 2026 21:53
@zharinov zharinov merged commit 2652727 into master Jan 7, 2026
4 checks passed
@zharinov zharinov deleted the feat/ban-empty-constructs branch January 7, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants