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

17 lines
732 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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.