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

Remove part about octave no inline functions #657

Merged
merged 1 commit into from Mar 28, 2023

Conversation

AljenU
Copy link
Contributor

@AljenU AljenU commented Mar 27, 2023

According to octave documentation, they do support anonymous functions, for quite a while now. And, the fieldtrip code is already using anonymous functions already. Therefor, remove the part in the guideline about not using inline (actually anonymous) functions.

According to octave documentation, they do support anonymous functions, for quite a while now. And, the fieldtrip code is already using anonymous functions already. Therefor, remove the part in the guideline about not using inline (actually anonymous) functions.
@robertoostenveld
Copy link
Contributor

Confirmed, I upgraded to Octave version 8.1 and the following works

mac036-lan> octave

octave:1> f = @(x) x.^2
f =

@(x) x .^ 2

octave:2> f(2)
ans = 4

@robertoostenveld robertoostenveld merged commit 673142c into fieldtrip:master Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants