Open theodorekwok opened 2 years ago
When there is a return value:
You can write the return value itself (i.e., variable name, with the type), describe the return type (e.g., parsed command
), or even nothing when the return value is obvious (e.g., call to getName()
should return a name, so can omit such values). The general suggestion, however, is to indicate the return value for clarity of information and uniformness.
When there is no return value, it is acceptable if the return arrow is not shown.
Thanks prof!
May I check what is the convention for the words on the return arrow in the sequence diagram? Are there moments when it can be omitted?