There should be some sort of defined behavior for when a nickname is taken. This could be adding underscores until it works. It could be building in a list of alternative nicknames, and panicking when the list is exhausted. This could be propagating an IoError and letting the user figure out what action to take. It'll probably be the last one, but discussion could take place here on what this should look like.
There should be some sort of defined behavior for when a nickname is taken. This could be adding underscores until it works. It could be building in a list of alternative nicknames, and panicking when the list is exhausted. This could be propagating an IoError and letting the user figure out what action to take. It'll probably be the last one, but discussion could take place here on what this should look like.