Microsoft Store
 

Indent style


 

In computer programming, an indent style is a convention governing the indentation of blocks of code to convey the program's structure. This article largely addresses the C programming language and its descendants, but can be (and frequently is) applied to most other programming languages (especially those in the curly bracket family). Indent style is just one aspect of programming 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):

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

y: doStuff(x);

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

y + x }

~ ~ ~ ~ ~ ~ ~ ~ ~ ~