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

Don't allow named arguments in odin code #252

Open
richfitz opened this issue Dec 20, 2021 · 1 comment
Open

Don't allow named arguments in odin code #252

richfitz opened this issue Dec 20, 2021 · 1 comment

Comments

@richfitz
Copy link
Member

Things like:

rbinom(1, prob = p)

are bad because the user might write

rbinom(prob = p, size = 1)

which would definitely do the wrong thing...

@richfitz
Copy link
Member Author

Fixed in odin2 by, um, allowing named args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant