Closed apblack closed 1 year ago
This issue is fixed in commit 602672c. The asDebugString
methods still do produce different strings, but that's correct, because asDebugString
is intended to reveal the implementation.
print (1..4) // => [1, 2, 3, 4]
print ((1..4).asDebugString) // => range.from 1 to 4
print [1,2,3,4] // => [1, 2, 3, 4]
print ([1,2,3,4].asDebugString) // => sequence [1, 2, 3, 4]
Ranges and Sequences are two implementations of the same type. Minigrace takes care that, for example,
they compare equal, have the same hash, and so on.
However, as noted in this issue, their
asString
methods give different results. This is wrong.