You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This a software patterns/design question that affects mostly the ASTNode class hierarchy.
Do we prefer ASTNode mehods, e.g. neuron.add_to_internal_block(foo) or do we prefer a package of helper functions, e.g. ast_utils.add_to_internal_block(neuron, foo)?
Note that the ASTNode class hierarchy is not currently being generated by Antlr, but this could hypothetically change in the (far) future.
The text was updated successfully, but these errors were encountered:
I think the ast_utils module may slightly facilitate readability for future developers, rather than having a huge ASTNode class, but I am not sure the stakes are very high
This a software patterns/design question that affects mostly the
ASTNode
class hierarchy.Do we prefer
ASTNode
mehods, e.g.neuron.add_to_internal_block(foo)
or do we prefer a package of helper functions, e.g.ast_utils.add_to_internal_block(neuron, foo)
?Note that the
ASTNode
class hierarchy is not currently being generated by Antlr, but this could hypothetically change in the (far) future.The text was updated successfully, but these errors were encountered: