Skip to content

Commit 3e23c99

Browse files
authored
Update F# coding conventions to clear up bad sentence (#5499)
* Update F# coding conventions to clear up bad sentence Fixes #5495 * Update conventions.md
1 parent c7e26f6 commit 3e23c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/fsharp/style-guide/conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ let parsed = StringTokenization.parse s // Must qualify to use 'parse'
8686

8787
In F#, the order of declarations matters, including with `open` statements. This is unlike C#, where the effect of `using` and `using static` is independent of the ordering of those statements in a file.
8888

89-
In F#, because elements opened into a scope can shadow others already present. This means that reordering `open` statements can alter the meaning of code. As a result, sorting alphanumerically (or pseudorandomly) is generally not recommended, lest you generate different behavior that you might expect.
89+
In F#, elements opened into a scope can shadow others already present. This means that reordering `open` statements could alter the meaning of code. As a result, any arbitrary sorting of all `open` statements (e.g., alphanumericall) is generally not recommended, lest you generate different behavior that you might expect.
9090

9191
Instead, we recommend that you sort them [topologically](https://en.wikipedia.org/wiki/Topological_sorting); that is, order your `open` statements in the order in which _layers_ of your system are defined. Doing alphanumeric sorting within different topological layers may also be considered.
9292

0 commit comments

Comments
 (0)