Best practices on managing state during explain
calls
#453
Labels
internal-mle
Priority: Medium
Type: Maintenance
Anything to do with library maintenance (CI, linting, refactoring etc.)
Currently we don't have guidelines for how to manage the state of an explainer object, especially during
explain
calls. Anexplain
method may be very complex internally, calling a bunch of different methods or functions, so state is often set using various attributes to keep track of calculation results. However, this can be problematic for several reasons:explain
.explain
will by definition be related to something we just finished explaining, so it doesn't feel right to hold onto this state afterexplain
call finishesOn the other hand, it's not clear what the best patterns of managing state in explainer objects could be. A broader move towards functional programming patterns may help.
The text was updated successfully, but these errors were encountered: