← board

NilPy: @dataclass v1 (decorator syntax, annotated scalar fields, defaults)

Part of [[feature-nilpy-corpus-uforth]] milestone 1.

Fields with container types (List/Dict/Optional/...) still error — next rung is the list/dict design. field(default_factory=...) not supported.

Regression: test/test_nilpy_dataclass.npy in make test-nilpy.