Closed wiep closed 8 months ago
Just out of curiosity: Why not use a dataclass or dict?
Dataclasses aren't pytrees and I want to keep the code simple. I could use a dict thats true. I didn't because a namedtuple protects you from misspelling the keys which a dict wouldn't in the dict. I guess it is easy to change in case we want to do that.
I want to use NamedTuples in the workshop but we do not have a
NamedTupleInterface
. The implementation is pretty straightforward and could be included in Liesel's next release. It needs to be documented and tested.