On 15 Nov., 00:31, samppi <[EMAIL PROTECTED]> wrote:
> Yeah, I surmised as much. The thing is, I'm writing a YAML library in
> Clojure, and YAML allows circular recursion like that:
>
>   ---
>   &x
>   - 3
>   - 2
>   - 1
>   - *x
>
> ...So I'm wondering what I should do if a document like that were
> loaded.

Your data structure can make the recursion explicit in some way.  The
above could produce (x (value 3) (value 2) (value 1) (ref x)) or
something like that.  If the data don't fit simple list data
structure, use something other than that, I'd say.

Matthias
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to