-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser: re-order identifier-enum keyword ordering
Prior to this commit: args: name string enum name ["alice", "bob", "charlie"] after: args: name string name enum ["alice", "bob", "charlie"] A couple of reasons: 1) I think, if you group lots of constraints together (as we add more types), it will be easier to read whats going on because, if they all start with the identifier, then the next keyword lines up visually. 2) It will arguably flow more nicely into some future keywords e.g. first_name requires last_name although it does conflict with some planned syntax like exactly 2 arg1 arg2 arg3 where the keyword does come first. I'm not 100% confident about this change, I just want to try it out and then can re-evaluate later and perhaps revert.
- Loading branch information
Showing
4 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters