4.5 Case and conformity clauses

Do not write a case or conformity clause in a single line, unless you are using the brief form. Unlike conditional and loop clauses, these are difficult to read.

Please put the in, out and ease symbols in their own lines, with the same indentation level than the matching case.

Start the choices right after the in symbol, in the same line. All the choices may fit in a single line. If they don’t, please put each choice in its own line.

{ Short case clause }
case i
in 100, 200, 300 out 0 esac;

{ Long case clause }
case i
in 100,
   200,
   300
ouse i % 100
in 100,
   200,
   300
esac;

{ Long conformity clause }
case v
in (void): "empty",
   (bool b): (b | "true" | "false"),
   (string s): s
esac