Open tupshin opened 4 years ago
I don't think exposing a string representation of the internal state is a good idea.
It would be better to just change the println! calls with debug! calls from the log crate. This way you could add a different log targets depending on your needs, without exposing internal state.
Hi @tupshin thanks for the input. I think you've identified a valid problem, however @hardliner66 has a valid point re not using a string representation. My concern would be larger actor systems that have several thousand or more actors and the allocation to append each actor name. Maybe there is a more effective way to solve the problem that you've identified?
Note that I found this useful when debugging and I didn't have access to a normal stdout.