Fork me on GitHub

Wilker, “The parsing environment is simply a map that carries along data while parsing (and can be augmented as you go).” care to elaborate on “and can be augmented as you go”…as far as I know the only way to do that is by stashing an atom in there…is there some special return value for resolvers that will put extra stuff into env for the rest of the parse?


@tony.kay yes, there is a special thing you can use to augment env, sorry missing docs, I'll add in a bit and let you know


just a heads up, you can only do that when changing context (you can't change env for a sibling, and that would be a mess given pathom doesn't garantee the order in which attributes will process)


one way to change data for siblings is having an atom in the env, then you can change anyway (but risking concurrency issues)