ruby lets you put an array inside itself
Submitted by musou in programming
Submitted by musou in programming
Viewing a single comment thread. View all comments
I actually run into these types of circular reference loops often in JS, especially when I want to serialize arbitrary objects to JSON. Some other formats such as YAML provide reference semantics and are thusly able to deal with circular references, but JSON does not.
Moonside wrote
scary