Indent Style - Pico Style

Pico Style

The style used most commonly in the Pico programming language by its designers is different from the aforementioned styles. The lack of return statements and the fact that semicolons are used in Pico as statement separators, instead of terminators, leads to the following syntax:

stuff(n): { x: 3 * n; y: doStuff(x); y + x }

The advantages and disadvantages are similar to those of saving screen real estate with K&R style. One additional advantage is that the beginning and closing braces are consistent in application (both share space with a line of code), as opposed to K&R style where one brace shares space with a line of code and one brace has a line to itself.

Read more about this topic:  Indent Style

Famous quotes containing the word style:

    I never knew a writer yet who took the smallest pains with his style and was at the same time readable.
    Samuel Butler (1835–1902)