This repository was archived by the owner on Aug 16, 2021. It is now read-only.
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
Redesign syntax as a proc macro #170
Open
Description
There are a lot of deficiencies with the current syntax that are pretty hard to resolve as a macro_rules macro:
- Make it possible to attach attributes to Error and ErrorKind types
- Make it possible to attach visibility specifiers
- The syntax not matching corresponding declaration form
- The types declaration, with its hand-rolled system of defaults, doesn't quite feel "rustic"
- Attributes only coming after items
- No ability to place attributes or visibility modifiers on
Error
orErrorKind
- No ability to use generics in error variants
- Cannot document fields in struct type error
- Cannot currently use
derive
on the Error type - Links with custom description/display
- Make it possible to specify Send / Sync
- I personally think it should be send / sync by default
This is a lot of constraints and demands a complete redesign.
Metadata
Metadata
Assignees
Labels
No labels