I actually think a better example of this would be base Python’s @dataclass
decorator, which lets you opt-in to struct-like behavior instead of dictionary classes (mimicking the way Julia macros are often used to add new features).
I actually think a better example of this would be base Python’s @dataclass
decorator, which lets you opt-in to struct-like behavior instead of dictionary classes (mimicking the way Julia macros are often used to add new features).