-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 a macro rule system! #12915
Comments
As with your other issues, I think you need some rationales to suggest those macros. And I guess it is a better fit for the function ( |
Rust's libraries greatly favor composition over specific functions such as this. As with your other issues about new macros, these are mostly conveniences and don't particularly serve any fundamental purpose. The existing macros in For this reason, I'm going to close this and the associated issues about macros. Issues can be created about adding convenience functions if you like, but I do not believe that this functionality belongs in macros. |
i think if you add these macro to std lib ,maybe programmers can use rust like a scripting languages. |
@electricface Rust itself is not designed as a scripting language though. How about making your own macro library (see #11151) to provide additional macros like these? |
internal: Update `xtask promote` and release instructions Update `xtask` for the subtree workflow. This doesn't explain how to do a `rust -> RA` sync, since that's definitely more involved, but will probably only happen rarely.
… r=xFrednet Handle single chars with `to_string()` for `single_char_add_str` Add support for single chars / literals with `to_string()` call for `push_str()` and `insert_str()`. changelog: [`single_char_add_str`]: handle single chars with `to_string()` call Closes rust-lang#12775
like the perl 's "system" function.
The text was updated successfully, but these errors were encountered: