I have a set of objects, that contain references to other objects. There is always a general reference: nextObject. But sometimes, I know more about the object beside me. So I could use a member like: theNextSentenceInThisParagraph.
Some code, that knows what they are dealing with, could use tNSITP. Other code, that doesn't know about the adjacent object, would use nO. I could assign two members, each with its own name, pointing to the adjacent object. But I'd rather assign two names to the same member. Is that possible?
myObject
nextObject: theNextSentenceInThisParagraph: reference-to-next-object
javascriptand yourcodelooks likeyaml. Please, update your question