PreviousUpNext

12.11  Record expressions

“Real Programmers don’t comment their code.
  It was hard to write; it should be hard to read.”
                                                —
Anonymous

Lay out records like case statements, but with two-blank initial indents:

    { key   => value,
      key   => value,
      key   => value
    };

    { long_key
          =>
          big_epression,

      long_key
          =>
          big_epression,

      long_key
          =>
          big_epression
    };

As always, try to put the shortest alternatives first.


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext