Alphaharrius / Zipper.jl

Implementation of Zipper Entanglement Renormalization on Julia platform.
GNU General Public License v3.0
1 stars 0 forks source link

`Point` constructor shorthand collide with `in` operator. #40

Closed Alphaharrius closed 7 months ago

Alphaharrius commented 7 months ago

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 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.

Alphaharrius commented 7 months ago

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.