-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
As per #7:
This implementation is incomplete and I will be rewriting it to a handwritten parser, which will allow for more fine-grained syntax control and better diagnostics.
We need to support:
- alternative types properly
- alternative types properly
- type grouping (
[](string|number)?) - properly support aliasing multiple returns and such (when functions will become a thing), but also for aliases/strong types if they will be supported
- rewrite nils and alternatives to support them at grammar level but not typesystem level (AST validation & rewrite)
- do we also make
anyactually be any type but not nil? And then onlyany?orany|nilwould work as the classicany? Put that behind an option?lose_anyor something?
Metadata
Metadata
Assignees
Labels
No labels