Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern for representing parameters. #6

Closed
Tracked by #4
ANaka opened this issue Mar 7, 2023 · 0 comments · Fixed by #7
Closed
Tracked by #4

Pattern for representing parameters. #6

ANaka opened this issue Mar 7, 2023 · 0 comments · Fixed by #7

Comments

@ANaka
Copy link
Owner

ANaka commented Mar 7, 2023

An extremely common situation for me has been to have a low level process that needs a value x to do something, and I'll want to do a transition from x is a magic number constant to x is a literal being yielded by some iterator to x is a random variable that needs to be drawn from a distribution or calculated from other low level state. The most flexible pattern for this is probably a generator and it likely makes sense to build around that idea

@ANaka ANaka mentioned this issue Mar 7, 2023
4 tasks
@ANaka ANaka changed the title Finding a consistent pattern for representing parameters. An extremely common situation for me has been to have a low level process that needs a value x to do something, and I'll want to do a transition from x is a magic number constant to x is a literal being yielded by some iterator to x is a random variable that needs to be drawn from a distribution or calculated from other low level state. The most flexible pattern for this is probably a generator and it likely makes sense to build around that idea Pattern for representing parameters. Mar 7, 2023
@ANaka ANaka linked a pull request Mar 16, 2023 that will close this issue
@ANaka ANaka closed this as completed in #7 Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant