Open mzy2240 opened 1 year ago
I'll add the bug
label since a stackoverflow here is probably not the optimal failure mode even if we want to have this error.
This is a bit of an edge case though, since generally you do very much do not want to be splatting collections of thousands of things.
W/r/t the use case at hand, since there seems to be no append!
method for Set
(which would be an idiomatic way to do this if container
were an Array
instead of a Set
), you might consider something along the lines of
container = container ∪ Set(mapping["a"])
The stackoverflowerror could be easily reproduced under MacOS. Try the following code:
Here is my system info
Running the same code under Windows won't raise the error.