export function backing "evaluate" property #430
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here were my Discord notes backing this request. Not sure what you think of the name, or if my export here is actually valid JS syntax... let me know!
"I have an example going with the Bezier plugin, and noticed that the returned value is an array of four entries, BUT ALSO used as an object, with a couple of keys added for (I think) evaluate etc.
This is convenient... but these keys don't survive conversion to ClojureScript, and the code isn't structured to make it easy to recover those values with only the 4 bezier curve entries.
What do you think of restructuring the code to export an evaluate function that takes the array of 4 entries as well as a point? we can keep the current behavior, but the change would let me evaluate without the plugin internally building that evaluate function for me."