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

Enforce list of allowed operators? #57

Open
neonWhiteout opened this issue Aug 15, 2023 · 0 comments
Open

Enforce list of allowed operators? #57

neonWhiteout opened this issue Aug 15, 2023 · 0 comments

Comments

@neonWhiteout
Copy link
Collaborator

Right now, there is a list of operators in StockFlow.jl which are supposed to be all those allowed in a stock flow definition, but it isn't currently enforced. EG, the following is valid, even though foobar isn't in the allowed list

k = @stock_and_flow begin
:stocks
S
:dynamic_variables
k = foobar(S)
end

We may be able to add constants by treating them like nullary operators, too, but that's a whole other can of worms.

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

No branches or pull requests

1 participant