Provide a human-readable representation of an identifier?
问题 As a follow-up to a previous question where I asked for a solution to a broken problem, I'm trying to find a way to express an arbitrary identifier in a "readable" way. Context: we are working with entities (domain model objects from DDD), which have an identity . This identity (mapped to a database primary key) can be expressed as a string: '123' , 'ABC' . Some entities can have a compound identity , i.e. composed of two or more other entities' identity : array('123','ABC') . Sometimes, we