The constructor shorthand [x, y]∈space should be used for checking if the point is within a space, not creating the point itself, but the display method for Point can use this syntax format since it is intuitive.
Solution
Change the shorthand to space*[x, y], this have an advantage since * have a higher execution order than +, -, .+, .-, ... we do not need to put the whole expression within a bracket.
Since the use case of the existing shorthand is high, there are no viable reason to modify huge amount of test cases, thus we provide the solution as an alternative shorthand.
Descriptions
The constructor shorthand
[x, y]∈space
should be used for checking if the point is within a space, not creating the point itself, but the display method forPoint
can use this syntax format since it is intuitive.Solution
Change the shorthand to
space*[x, y]
, this have an advantage since*
have a higher execution order than+, -, .+, .-, ...
we do not need to put the whole expression within a bracket.