Whenever a structure has a cyclic reference and it does not match a type, inspect() will try to print it's contents and run into a tight loop.
What do you think about limiting maximum depth of inspection, to let's say 4?
For readability sake, it would be also beneficial to limit amount of keys to iterate over too, in case there's a huge array/object to print.
Whenever a structure has a cyclic reference and it does not match a type, inspect() will try to print it's contents and run into a tight loop.
What do you think about limiting maximum depth of inspection, to let's say 4? For readability sake, it would be also beneficial to limit amount of keys to iterate over too, in case there's a huge array/object to print.