On Tuesday, December 5, 2017 at 5:16:22 PM UTC, Mark Hamburg wrote:
>
> If you have a recursive JSON structure to decode, then the decoder either 
> needs to refer to itself (a cycle) or it needs to generate a new decoder on 
> each recursive step.
>

There is a difference between a function that is recursive and values on 
the heap that are cyclic. The recursive functions issue seems to be with 
what order to output compiled javascript code in, when there are mutually 
recursive functions, as one may not be defined at the point in time when 
another needs to access it. The cyclic structures on the heap issue, is to 
do with how to make garbage collection very easy in a language that does 
not need cyclic structures.

I think this page is confusing because it discusses both issues at the same 
time:
https://gist.github.com/evancz/07436448b7d6c947f21742dab46d1218



-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to