Choose one: should the State
use s.dot_notation
or s["dictionary notation"]
?
#575
-
Which notation do people prefer for the
We want to settle on one of these for the following reasons:
All the features we currently want on the Differences:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I am voting for dataclass. This is a good video demonstrating and comparing both and it does a good job showing how much cleaner it is to use dataclasses: https://youtu.be/8SCYteAlqko?si=2mE_kil0skzKJlND Although dictionaries are simpler to use, and will facilitate users with less experience, dataclasses have some extra functionality, which will facilitate more experienced users. Although it's nice to support less experienced users, I suspect AutoRA will more heavily be used by experienced users so I would focus on that. Dataclasses also have extra functionality, which may come in handy as AutoRA evolves to be more complex, or as users use it in more complex ways. Lastly, our experimentalists and experiment runners are functions and our theorists are classes, so choosing dataclasses over dictionaries minimizes the different types of components. |
Beta Was this translation helpful? Give feedback.
-
Postscripts:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Adding a note here on our decision so this does not get lost. For the next release, we have decided to stick with the dataclass using the StandardState. |
Beta Was this translation helpful? Give feedback.
I am voting for dataclass.
This is a good video demonstrating and comparing both and it does a good job showing how much cleaner it is to use dataclasses: https://youtu.be/8SCYteAlqko?si=2mE_kil0skzKJlND
Although dictionaries are simpler to use, and will facilitate users with less experience, dataclasses have some extra functionality, which will facilitate more experienced users. Although it's nice to support less experienced users, I suspect AutoRA will more heavily be used by experienced users so I would focus on that. Dataclasses also have extra functionality, which may come in handy as AutoRA evolves to be more complex, or as users use it in more complex ways.
Lastly, our experimental…