Formatting Rules
This section defines all formatting rules for yx format. The rules are categorized by topic as follows:
Basic Rules
- Basic Formatting Rules — Indentation, line width, operators, code blocks
Functions
- Function-Related Rules — Function definitions, function calls, Lambda expressions
Type System
- Type System Rules — Type annotations, references and borrows, type conversions
Data Structures
- Data Structure Rules — Literals, lists and dictionaries, Match expressions
Control Flow
- Control Flow Rules — if/else if/else, for loops, while loops, loop labels
Special Syntax
- Special Syntax Rules — F-String, import statements, error handling, unsafe blocks
