nus-cs2103-AY2021S1 / forum

20 stars 2 forks source link

Object Deletion in Sequence Diagrams #358

Closed WeiJie96 closed 4 years ago

WeiJie96 commented 4 years ago

May I ask when we should the object deletion symbol in sequence diagrams, in particular for AB3?

For delete command, only the parser gets deleted, but not the command itself.

image

Whereas for undo command, the command gets deleted.

image

damithc commented 4 years ago

It's an optional thing. You can use it wherever you think the object deletion is important enough to be specifically shown to the reader. Showing it makes the diagram more informative while omitting it doesn't make the diagram wrong. In this example, I think it's an oversight. Both objects get deleted and X can be used for both.

WeiJie96 commented 4 years ago

Thank you, Prof!