[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Recommended style for switch statements
From: |
Rik |
Subject: |
Recommended style for switch statements |
Date: |
Mon, 08 Jul 2013 20:31:38 -0700 |
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?
--Rik
- Recommended style for switch statements,
Rik <=