Hacker News new | past | comments | ask | show | jobs | submit login

I'm unclear on the difference between the "computes" and "varies" effects. Surely a function that only reads constant state is pure by definition?



I see a bullet point saying Varies is for "random or non-constant state"


I think I may have been misreading, I was assuming that these effects were meant to be composed, but I guess they're exclusive to each other and form a tower (the preceding line even calls them the "exclusive effects", but I thought it just meant that this was an exhaustive list of effects).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: