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

Add keyword parameters to functions #1122

Open
clinssen opened this issue Oct 10, 2024 · 0 comments
Open

Add keyword parameters to functions #1122

clinssen opened this issue Oct 10, 2024 · 0 comments

Comments

@clinssen
Copy link
Contributor

clinssen commented Oct 10, 2024

Spin-off from #946.

Implement a more Python-like syntax for function calls, where the attribute names can explicitly listed. For instance, if we define

function foo(weight real, delay ms) real:
    emit_spike(weight, delay)

then instead of

foo(w, 1 ms)

we could write

foo(weight=w, delay=1 ms)

or

foo(w, delay=1 ms)

but not

foo(weight=w, 1 ms)

because keyword-value pairs should always come after index-based parameters, following Python.

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