Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2982

Update bracing style

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • None
    • None

    Description

      Our current code style has opening braces on lines by themselves.

      At least two members of the team have expressed a preference to allow the opening brace to be part of the previous line of code e.g.

       

      // current style:
      if (...) 
      {
        // blah
      }
       
      // proposed change
      if (...) {
       // blah 
      }
      

       

      If a majority of the team prefers this style, perhaps we should consider using it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: