QDBP: Explicit depth markers as an alternative to indentation and parentheses
QDBP is a programming language that replaces traditional indentation and parentheses with explicit depth markers, offering an alternative syntax for code structure.
Background
- QDBP (Queues of Depth-Based Prefixes) is a proposed syntax format where each line of code starts with a number indicating its nesting depth, replacing traditional indentation or parentheses.
- For example, `0 def foo` / `1 print "hello"` instead of `def foo:` / ` print "hello"` — a radical alternative to how most languages (Python, Lisp, etc.) structure blocks.
- The project's author (tearflake) is an independent developer exploring novel code representations; this is not an established standard or backed by any major organization.
- The core motivation: indentation can be whitespace-sensitive (fragile in mixed environments) and parentheses can be hard to match visually; explicit depth markers aim to make structure obvious and machine-parseable without ambiguity.
- This is relevant to programming language design, syntax readability debates, and tools for code generation or editing where depth must be explicit.