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
More ways to trigger evalable #53
Comments
|
I had another thought, anything that results in a "useless use of", also try the same thing with 'say ' in front and return both results. |
|
This is exactly the reaction I was hoping for: https://irclog.perlgeek.de/perl6/2017-05-18#i_14599572 |
|
I think this can be closed. Would be great to have more tests though. |
|
Maybe we should make it harder to trigger. Example: https://irclog.perlgeek.de/perl6/2017-09-05#i_15118238 |
This should trigger more and less at the same time. We will no longer see annoying evals that result in compile time error, but we might see it being triggered on things that actually work (even if surprisingly). Somewhat similar to Braitenberg vehicles, achieves intelligent behavior using even simpler rules. Can now detect code in any message, not just starting with “say”. Contrary to the logical approach of detecting code and then running it, it runs every message first and then only sends a response if the output is nice (0 exit code, no warnings, etc.). Rhesolves #53, #130
|
Leading space triggers both evalable and camelia: https://irclog.perlgeek.de/perl6/2018-02-03#i_15773390. |
Motivated by this situation: https://irclog.perlgeek.de/perl6/2018-02-05#i_15780531 Related issues: #53, #130.
Actually, the feature is well tested, and even this test is somewhat redundant. Closes Raku#53.
|
Somehow @jnthn++ is triggering evalable unintentionally, all the time. These can be simply special-cased, I don't remember any other false positive. |
|
I fixed it a little bit in a32bb60, but |
m:without a space should work. Also, perhaps it should be able to figure out thatsay …something…should be executed as well. How often people start their sentences with “say” for other reasons? If there are any false positives, perhaps also check if the message has too many symbols or something.The text was updated successfully, but these errors were encountered: