Open david-eom opened 3 years ago
We believe that the notation is still correct since it means "for every element of the list", even though your suggestion is also valid.
Team chose [response.Rejected
]
Reason for disagreement: According to the textbook, the notation within []
(the square brackets) must be a condition. It has to be a boolean, or the number of times. Examples include [hasNext]
or [5 times]
.
However, the team simply used [List < Task >]
. I would like to point out that although syntax like while [certain list]:
is valid in languages like Python, List < Task >
in Java simply means a generic class. "Believe that the notation means 'for every element of the list'" does not constitute a valid defence in my opinion.
In the sequence diagram of deleting all done tasks as attached below:
The loop condition is a bit weird.
[List < Task > ]
is not really a boolean or an integer for the loops to be iterated.A better choice would be
List < Task > .length()
times or the like.