-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I've been finding that most times I need to perform repeated task invocation I have two options:
- Use nonce that captures (time based) randomness
- Acknowledge existence of previous call via causal relation
Downside of first option is that it makes things non-deterministic, and leads to non referentially transparent code. Second less obvious option does not have same issues and better yet encourages to capture (partial) order. It is also worth calling out that one could always encode arbitrary nonce as an link with identity hashed to a raw block, which is couple bytes prefix but otherwise same.
Which is why I'd like to propose replacing nonce with an optional cause: &any field (could be a different name) as I think it would encourage thinking about order and more deterministic approach
Metadata
Metadata
Assignees
Labels
No labels