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

Refactor builtin's execute method for wider return types #242

Merged
merged 3 commits into from
Jul 27, 2021

Conversation

fwendland
Copy link
Collaborator

Previously, builtin's execute method was limited to ConstantValue. This meant that builtins could only return booleans, numbers or strings. It wasn't possible to return lists. This was an undue limitation on the possibilities of builtins.

This refactors the return type of execute to the more general MarkIntermediateResult. This should allow to return ListValue for further processing.

Previously, builtin's execute method was limited to ConstantValue. This
meant that builtins could only return booleans, numbers or strings. It
wasn't possible to return lists. This was an undue limitation on the
possibilities of builtins.

This refactors the return type of execute to the more general
MarkIntermediateResult. This should allow to return ListValue for further
processing.
@fwendland fwendland added the enhancement New feature or request label Jul 27, 2021
@fwendland fwendland added this to the 2.0.0 milestone Jul 27, 2021
@fwendland fwendland self-assigned this Jul 27, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jul 27, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@oxisto oxisto merged commit db72253 into main Jul 27, 2021
@oxisto oxisto deleted the fw/refactor-builtins branch July 27, 2021 14:46
fwendland added a commit that referenced this pull request Apr 15, 2024
* Refactor builtin's execute method for wider return types

Previously, builtin's execute method was limited to ConstantValue. This
meant that builtins could only return booleans, numbers or strings. It
wasn't possible to return lists. This was an undue limitation on the
possibilities of builtins.

This refactors the return type of execute to the more general
MarkIntermediateResult. This should allow to return ListValue for further
processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants