Files
hakorune/apps/nyfmt-poc/README.md

17 lines
732 B
Markdown
Raw Permalink Normal View History

# nyfmt PoC Examples (Documentation Only)
This directory hosts small snippets demonstrating reversible formatting goals. No runtime behavior changes or formatter are included intree yet.
Examples to explore:
- 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/RoundTrip)
- compound-assign-roundtrip.hako: `+=` triad (Before/Canonical/RoundTrip)
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 roundtrip expectations.