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

Optional argument syntax #95

Closed
jido opened this issue Dec 27, 2024 · 5 comments
Closed

Optional argument syntax #95

jido opened this issue Dec 27, 2024 · 5 comments

Comments

@jido
Copy link

jido commented Dec 27, 2024

The documentation page for functions shows two different syntaxes for named/optional arguments:

  • test_named(times: 1, data: 3.0);
  • testme(3, 2.0, 5.0, .rate = 6.0);

Which one is correct?

@lerno
Copy link
Contributor

lerno commented Dec 27, 2024

The first one is the new one. The second is the deprecated one which will be removed in 0.7.0

@jido
Copy link
Author

jido commented Dec 27, 2024

Is the doc being updated?

@lerno
Copy link
Contributor

lerno commented Dec 27, 2024

Yes, so where did you find the second one? It should be fixed.

@jido
Copy link
Author

jido commented Dec 28, 2024

@lerno
Copy link
Contributor

lerno commented Dec 28, 2024

Found it, it should be correct now.

@lerno lerno closed this as completed Jan 17, 2025
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

2 participants