Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding info on while, do-while, and infinite loops
Updating based on the question [found here](#299)
  • Loading branch information
BrentFarris committed Jul 8, 2019
1 parent 1961b72 commit 3e106b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -56,6 +56,24 @@ if (1 == 1)
}
```

For infinite loops, while loops, and do-while loops, we need these to be exceptionally clear. So in the case of any of these we will use hanging brackets.
```csharp
while (true)
{
DoSomethingFancy();
}

do
{
DoSomethingFancy();
} while(true);

for(;;)
{
DoSomethingFancy();
}
```

For lambda expressions we have hanging brackets
```csharp
Call(() =>
Expand Down

0 comments on commit 3e106b6

Please sign in to comment.