@hongminhee洪 民憙 (Hong Minhee) this feels very much like moving from an applicative parser to a monadic one
@jnkrtech That's a fair characterization. The factory function in derive() is essentially a monadic bind—it takes the parsed dependency value and returns a new parser. We tried to keep the API feeling applicative on the surface (you still compose parsers declaratively), but the underlying mechanism is indeed monadic when dependencies are involved.
❤️
1 person reacted.
Functional programming, TypeScript, tooling. He/him. Views and opinions my own and do not reflect those of my employer.
I usually only follow folks with pronouns in bio.