-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for closures (to Forge) #102
Comments
Alternate spelling that looks neat would be take <parameters>|nothing and -- single command goes here as well as take <parameters>|nothing and do
-- commands go here
end take and maybe even take <parameters>|nothing and
-- single command goes here Considerations
|
Implementation Notes
If anyone has suggestions, it would be appreciated. Especially something that reads English in most cases, doesn't use nerdy terminology or big words, and fits into HyperTalk's "the value has the type, not the variable" (aka "everything is a string") world. |
TBD - Can we make closure parameters more self-explanatory? Right now if a command expects errorCode, errorMessage in that order, and I reverse them, there's no way to detect that. |
We want an English-like syntax. Best I could come up with is
and
and
This reads fairly well when e.g. used in a function:
The text was updated successfully, but these errors were encountered: