2025-09-05 05:16:21 +09:00
|
|
|
|
# nyfmt PoC Examples (Documentation Only)
|
|
|
|
|
|
|
|
|
|
|
|
This directory hosts small snippets demonstrating reversible formatting goals. No runtime behavior changes or formatter are included in‑tree yet.
|
|
|
|
|
|
|
|
|
|
|
|
Examples to explore:
|
2025-11-06 15:41:52 +09:00
|
|
|
|
- pipeline-compact.hako: pipeline style vs canonical call nesting
|
|
|
|
|
|
- safe-access-default.hako: `?.` and `??` sugar vs explicit conditionals
|
|
|
|
|
|
- coalesce-range-roundtrip.hako: `??` and `a..b` triad (Before/Canonical/Round‑Trip)
|
|
|
|
|
|
- compound-assign-roundtrip.hako: `+=` triad (Before/Canonical/Round‑Trip)
|
2025-09-05 05:16:21 +09:00
|
|
|
|
|
|
|
|
|
|
Enable PoC smoke hints:
|
|
|
|
|
|
```bash
|
|
|
|
|
|
NYFMT_POC=1 ./tools/nyfmt_smoke.sh
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Notes: The real formatter prototype lives out of tree during early PoC. This folder documents intent and testable round‑trip expectations.
|