You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The formatting rules for let statements uses inconsistent meaning for the word "line", to the point where I get lost trying to understand what some of the rules even mean:
If the first line does not fit on a single line, then split after the colon,
using block indentation. If the type covers multiple lines, even after line-
breaking after the :, then the first line may be placed on the same line as
the :, subject to the combining rules (WIP).
Thanks for sharing. Would you mind expanding on your description to help me better understand your perspective? For example, you've introduced phrases like "logical line" that aren't part of the Style Guide, and it's not clear to me what that phrase means to you. Additionally, I'm unclear what aspect(s) of the formatting rules for the statement you've linked to you find confusing.
Remember that there is a contiguous, sequential theme to many of the codified rules that just happen to have code snippets with the rule description to provide a visual representation as the parts of the rule are provided.
Specifically with the text you've quoted (if the first line does not fit on a single line) this is a continuation of the immediately preceding text describing a scenario where the entire statement cannot fit on one line, and so would be split after the assignment operator, e.g.
let pattern:Type =
expr;
but it goes a step further to describe what to do next after applying that split in case the remaining first line (let pattern: Type =) itself still cannot fit on one line, namely moving the type portion around.
The formatting rules for
let
statements uses inconsistent meaning for the word "line", to the point where I get lost trying to understand what some of the rules even mean:Statements.md
There should probably be distinct terminology for a logical line and a formatted line. Or, at least, there should be more disambiguation.
The text was updated successfully, but these errors were encountered: