Fork me on GitHub
#pathom
<
2019-07-16
>
tony.kay05:07:33

Wilker, https://wilkerlucio.github.io/pathom/#_parsing_environment_and_the_reader “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?

wilkerlucio16:07:05

@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

wilkerlucio16:07:58

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)

wilkerlucio16:07:26

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