-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support defaction setting(var) for actions #164
Comments
Sorry, Bruce tells me the setting behavior is already implemented for HTTP specifically, not necessarily user-defined actions. |
Available as of |
Neat! How do user-defined actions return something? If there's documention, I missed it. |
There is not a way to return something right now. But I think there should be. Since there can be multiple sub-actions you might want to gather that data and return some value based on them. For example:
|
I agree. Consider creating a new pico... We have to make multiple "engine:" calls and then compile the information together before saving it in an entity variable. Not having a setting ability prevents us from effectively doing that. |
Cool. @windley @b1conrad Any opinions/objections to this concept, or I think we need a
if the |
I like |
Let me make sure I'm understanding the example you give above (for The
would result in I don't mind the |
@0joshuaolson1 yes, I think @windley correct and correct, that's what I was thinking. But I forgot that in other places |
Good on multiple return. BTW, I've often ran into situations in the prelude where a mutliple assignment would be handy in general. For example:
This is hard to do without repeating
|
Cool, I'll add that multiple assignment example to issue #5 |
Available, as of pico-engine More details/help here: |
This includes something like a return value for defactions. We have a concrete need now to return new pico information, where the pico is created by a function called in a defaction. (but may change with https://huboard.com/Picolab/pico-engine#/issues/229690097)
Another use case is making http actions actually actions instead of functions. https://picolabs.atlassian.net/wiki/display/docs/HTTP refers to
setting
.The text was updated successfully, but these errors were encountered: