Skip to main content

Questions tagged [blocks]

For questions about implementing blocks or their behavior. A block is a section of code, typically following an if statement or loop or similar constructs, that designates a group of statements or expressions.

Filter by
Sorted by
Tagged with
23 votes
7 answers

Is there a widespread alternative to C-style or Python-style code block syntax?

Many C-style languages represent code blocks using curly brackets: if (condition) { ...; ...; } Python, however, uses significant whitespace: ...