|
From: | John W. Eaton |
Subject: | Re: Recommended style for switch statements |
Date: | Mon, 08 Jul 2013 23:53:06 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 07/08/2013 11:31 PM, Rik wrote:
7/8/13 John, I was just grepping through the m-files and I notice that we use two forms of the switch statement. switch CONDITION : 28 times switch (CONDITION) : 99 times Is the switch statement like the if and while statements in that we follow the C language example and place the condition in parentheses?
Although not required, I prefer to use the parentheses. jwe
[Prev in Thread] | Current Thread | [Next in Thread] |