Private
Public Access
refactor(directives): strip metadata header from v1.md (27-35 of 51; meta extracted to meta.md)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# nil_sentinel_pattern
|
||||
|
||||
## v1
|
||||
|
||||
**Why this iteration:** Lifted verbatim from `conductor/code_styleguides/error_handling.md` §"The 5 Patterns" #1 (lines 23-47).
|
||||
This is the baseline encoding — the convention-style description with code example currently in production.
|
||||
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
|
||||
**Source:** `conductor/code_styleguides/error_handling.md:23-47`
|
||||
|
||||
---
|
||||
**Lifted:** 2026-07-02 (Phase 1 harvest by Tier 3 worker; user directive 2026-07-02 moved the header into this meta file)
|
||||
@@ -1,13 +1,3 @@
|
||||
# nil_sentinel_pattern — v1
|
||||
|
||||
**Why this iteration:** Lifted verbatim from `conductor/code_styleguides/error_handling.md` §"The 5 Patterns" #1 (lines 23-47).
|
||||
This is the baseline encoding — the convention-style description with code example currently in production.
|
||||
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
|
||||
|
||||
**Source:** `conductor/code_styleguides/error_handling.md:23-47`
|
||||
|
||||
---
|
||||
|
||||
### 1. Nil-Sentinel Dataclasses (replaces `None`)
|
||||
|
||||
When a function would "return None" in conventional Python, return a
|
||||
|
||||
Reference in New Issue
Block a user