Skip to content

feat(FunctionNode): allow function parameters to be called#2443

Merged
josdejong merged 3 commits into
josdejong:developfrom
gwhitney:functional_param
Mar 1, 2022
Merged

feat(FunctionNode): allow function parameters to be called#2443
josdejong merged 3 commits into
josdejong:developfrom
gwhitney:functional_param

Conversation

@gwhitney
Copy link
Copy Markdown
Collaborator

This change is implemented by checking if a function symbol is in
the arg list, and if so delaying its analysis until evaluation time,
at which point it is extracted from the arguments and called as
appropriate depending on its rawArgs property.

Also adds a few tests, documents the new facility, and documents the
handling of free variables in a function definition, which was previously
left undescribed.

Resolves #2441.
Resolves #2442.

  This change is implemented by checking if a function symbol is in
  the arg list, and if so delaying its analysis until evaluation time,
  at which point it is extracted from the arguments and called as
  appropriate depending on its rawArgs property.

  Also adds a few tests, documents the new facility, and documents the
  handling of free variables in a function definition, which was previously
  left undescribed.

  Resolves josdejong#2441.
  Resolves josdejong#2442.
@josdejong
Copy link
Copy Markdown
Owner

Thanks Glen, really nice and powerful improvement 👍

@josdejong josdejong merged commit cbcc425 into josdejong:develop Mar 1, 2022
@josdejong
Copy link
Copy Markdown
Owner

Published in v10.3.0, thanks again

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

Successfully merging this pull request may close these issues.

"New functions can be defined using the function keyword." ? Functions should be able to take function parameters

2 participants