<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:925386525;
        mso-list-type:hybrid;
        mso-list-template-ids:-1200602002 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style></head><body lang=EN-US><div class=WordSection1><p class=MsoNormal>Dear folks</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Incorporating suggestions from Eric and Wentao:</p><p class=MsoNormal><o:p> </o:p></p><p style='margin-left:.5in'><span style='font-family:Consolas'>// option E<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>switch (cond) {<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  case 1:<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  {<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    int i = 1;<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    doSomething(i);<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    // Fallthrough<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  }<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'><o:p> </o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  case 2:<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  {<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    doSomething(2);<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    break;<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  }<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'><o:p> </o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  case 3:<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  {<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    int j = 3;<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    doSomething(j);<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    break;<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  }<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'><o:p> </o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  default:<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  {<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    doSomething(0);<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>    break;<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>  }<o:p></o:p></span></p><p style='margin-left:.5in'><span style='font-family:Consolas'>}<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>When any ‘case’ or ‘default’ contains a declaration and therefore needs a compound statement, all ‘case’s and ‘default’ must use compound statements.</p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>When using compound statements, ‘case’ and ‘default’ should be indented two spaces after ‘switch’, ‘{‘ and ‘}’ of the compound statements are indented at the same level as ‘case’ and ‘default’, and statements within the compound statements are indented two spaces after ‘case’ and ‘default’.</p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>‘break’ and ‘// Fallthrough’ should be placed inside compound statements.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A ‘switch’ statement without compound statements should still be formatted in the current way, i.e. no extra indentation for ‘case’ and ‘default’.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any more comments?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Yours, Junxiao</p></div></body></html>