-
Notifications
You must be signed in to change notification settings - Fork 81
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
[Feature] Succeeded keyword #287
Comments
Perhaps also introduce a |
i think we should get rid of the like this:
|
I’m afraid that this would introduce disambiguation for the if statement as the command evaluates to I like the |
it would also be useful to work with variables, like to match different string constants. it probably could also be compiled to readable |
Yes. That would be an interesting feature to add. |
If we do this - we could rewrite
|
Was this response intended to be posted on the "block" issue? But yes....if we allow blocks to be invoked like modifiers:
You mentioned macros.....would it be better for block functions to take an array of tokens instead of one big string?
|
Yes it was. Sorry for the lack of context. I’ll think about it also from the compiler stand point and propose the ultimate solution to this. I like what you have shown better. The macros kind of syntax |
In the examples on the website, I notice
unsafe
is being used in situations where a Bash command succeeding should cause a bailout condition. For example:When a failure should cause a bailout, you just use the
failed
keyword like this:There are only two script examples on the website, and both of them use
unsafe
to get around a limitation in Amber. If "failure is success and success is failure" situations are that common, why not have a keyword for it?The text was updated successfully, but these errors were encountered: