Open april-anh opened 1 year ago
According to module textbook, return values from constructor are optional.
Team chose [response.Rejected
]
Reason for disagreement: The problem here is inconsistency. If return objects are omitted, they should be omitted in both function calls. It doesn't make sense as future developers may don't know where the object u
comes from.
Hence, I think UndoCommand
should also return an object u
to Parser
, which will be passed to logic manger
later.
I think
UndoCommand
should also return an objectu
to Parser, which will be passed to logic manger later.