Closed matthew-mojira closed 7 hours ago
Recursive boxes should be allowed, because it might be useful in implementing cyclic data structures. For simplicity's sake, the single cycle should be allowed.
The real solution is that the box
type itself should not be recursive. Because the language is dynamic and the contents of the box is mutable, the type of a box can change, which doesn't really make sense.
The following program hangs
Should this be an Error?