Comment

Comment by ThePhysicist

What I find more interesting is that YAML allows you to define self-referential / circular data structures:

    foo: &foo
      bar: *foo
In PyYAML, this will give you a self-referntial dictionary. Powerful but pretty catastrophic if you use (naive) recursion to analyze a user-submitted data structure.
parent ThePhysicist 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton