Follow alphabetical order in enums and in their corresponding match
statements all over the compiler
#1685
Labels
code quality
compiler: codegen
Everything to do with IR->ASM, register allocation, etc.
compiler: frontend
Everything to do with type checking, control flow analysis, and everything between parsing and IRgen
compiler: parser
Everything to do with the parser
This may or may not make sense in some situations, but for the most part, it would be nice to have everything ordered alphabetically. This brings consistency and improves code readability.
e.g.
sway/sway-core/src/semantic_analysis/ast_node/declaration.rs
Lines 27 to 34 in a3b9cee
I think we already this properly in the
sway-ir
crate.The text was updated successfully, but these errors were encountered: